Skip to content

Instantly share code, notes, and snippets.

@NoiseEee
Created October 3, 2013 19:16
Show Gist options
  • Save NoiseEee/6815455 to your computer and use it in GitHub Desktop.
Save NoiseEee/6815455 to your computer and use it in GitHub Desktop.
<!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>
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