koerseadmin/node_modules/angular-md5
2015-08-29 15:27:40 +02:00
..
example first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
lib first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
test first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
.jshintrc first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
.npmignore first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
.travis.yml first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
angular-md5.js first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
angular-md5.min.js first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
angular-md5.min.js.map first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
bower.json first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
Gruntfile.js first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
LICENSE first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
package.json first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00
README.md first commit, angular should be fine, copied all from timeyourself 2015-08-29 15:27:40 +02:00

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