filter for ucfirst
This commit is contained in:
parent
20646683fd
commit
a5a1320734
@ -164,4 +164,9 @@ app.service('installmentService', function() {
|
||||
}
|
||||
return words_string;
|
||||
}
|
||||
});
|
||||
app.filter('ucfirst', function() {
|
||||
return function(input) {
|
||||
return (!!input) ? input.charAt(0).toUpperCase() + input.substr(1).toLowerCase() : '';
|
||||
}
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user