Created
January 12, 2014 22:57
-
-
Save sbruchmann/8391857 to your computer and use it in GitHub Desktop.
Chaining Angular.js filters
This file contains hidden or 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('phonecatFilters', []) | |
.filter('checkmark', function() { | |
return function(input) { | |
return input ? '\u2713' : '\u2718'; | |
}; | |
}) | |
.filter('foobar', function() { | |
return function(input) { | |
return 'foobar'; | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment