Skip to content

Instantly share code, notes, and snippets.

@sbruchmann
Created January 12, 2014 22:57
Show Gist options
  • Save sbruchmann/8391857 to your computer and use it in GitHub Desktop.
Save sbruchmann/8391857 to your computer and use it in GitHub Desktop.
Chaining Angular.js filters
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