Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Forked from paulakreuger/angular-filters.js
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpabloaj/319eee54576e76d57445 to your computer and use it in GitHub Desktop.
Save juanpabloaj/319eee54576e76d57445 to your computer and use it in GitHub Desktop.
app.filter('capitalize', function() {
return function(input, scope){
if ( input ) {
input = input.toLowerCase();
return input.substring(0,1).toUpperCase() + input.substring(1);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment