Skip to content
md5 for Angular.js and Gravatar filter
JavaScript HTML
Branch: master
Clone or download
Latest commit f0c5d61 Nov 17, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Update index.html Feb 4, 2014
lib
test init test Dec 16, 2013
.gitignore add .tmp/ and tmp/ to .gitignore Jan 20, 2014
.jshintrc add .jshintrc Dec 16, 2013
.travis.yml add travis.yml Dec 16, 2013
Gruntfile.js refactor(uglify): #8 commonjs package manager support & fix enclose u… Jul 27, 2015
LICENSE add MIT License Jul 8, 2014
README.md
angular-md5.js chore: bump 0.1.9 Nov 18, 2015
angular-md5.min.js chore: bump 0.1.9 Nov 18, 2015
angular-md5.min.js.map chore: bump 0.1.9 Nov 18, 2015
bower.json chore: bump 0.1.10 Nov 18, 2015
package.json chore: bump 0.1.10 Nov 18, 2015

README.md

angular-md5 Build Status

md5 for Angular.js and Gravatar filter

#How do I add this to my project?

You can download angular-md5 by:

<body ng-app="YOUR_APP" ng-controller="MainCtrl">
  <img src="http://www.gravatar.com/avatar/{{ email | gravatar }}">
  <input type="email" ng-model="email" placeholder="Email Address">
  {{ message }}
</body>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.js"></script>
<script src="app/bower_components/angular-md5/angular-md5.js"></script>
<script>
  angular.module('YOUR_APP', [
    'angular-md5', // you may also use 'ngMd5' or 'gdi2290.md5'
    'controllers'
  ]);
  angular.module('controllers', [])
    .controller('MainCtrl', ['$scope', 'md5', function($scope, md5) {

      $scope.$watch('email' ,function() {
        $scope.message = 'Your email Hash is: ' + md5.createHash($scope.email || '');
      });

    }]);
</script>

MIT

You can’t perform that action at this time.