Created
October 3, 2013 19:16
-
-
Save NoiseEee/6815455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"></script> | |
<script src="filtersPerf.js"></script> | |
</head> | |
<body ng-app="filtersPerf"> | |
<input ng-model="name"> {{name | logUppercase}} | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('filtersPerf', []) | |
.filter('logUppercase', function(uppercaseFilter){ | |
return function(input) { | |
console.log('Calling uppercase on: '+input); | |
return uppercaseFilter(input); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment