Skip to content

md5 for Angular.js and Gravatar filter

License

Notifications You must be signed in to change notification settings

cagegit/angular-md5

Repository files navigation

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:

<bodyng-app="YOUR_APP" ng-controller="MainCtrl"><imgsrc="http://www.gravatar.com/avatar/{{email | gravatar }}"><inputtype="email" ng-model="email" placeholder="Email Address">{{message }} </body><scriptsrc="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.js"></script><scriptsrc="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

About

md5 for Angular.js and Gravatar filter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript93.1%
  • HTML6.9%