mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
.. | ||
example | ||
lib | ||
test | ||
.jshintrc | ||
.npmignore | ||
.travis.yml | ||
angular-md5.js | ||
angular-md5.min.js | ||
angular-md5.min.js.map | ||
bower.json | ||
Gruntfile.js | ||
LICENSE | ||
package.json | ||
README.md |
angular-md5
md5 for Angular.js and Gravatar filter
#How do I add this to my project?
You can download angular-md5 by:
- (prefered) Using bower and running
bower install angular-md5 --save
- Using npm and running
npm install angular-md5 --save
- Downloading it manually by clicking here to download development unminified version
<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>