Skip to content

Instantly share code, notes, and snippets.

@craiggoldstone
Forked from paulakreuger/angular-filters.js
Last active August 29, 2015 14:22
Show Gist options
  • Save craiggoldstone/e4107389dda0e177e075 to your computer and use it in GitHub Desktop.
Save craiggoldstone/e4107389dda0e177e075 to your computer and use it in GitHub Desktop.
app.filter('capitalize', function() {
return function(input, scope) {
if (input!=null)
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