Primeira letra do tubo angular
{{ value_expression | titlecase }}
Victorious Vendace
{{ value_expression | titlecase }}
transform(value:string): string {
let first = value.substr(0,1).toUpperCase();
return first + value.substr(1);
}
app.filter('capitalize', function() {
return function(token) {
return token.charAt(0).toUpperCase() + token.slice(1);
}
});
transform(value:string){
let first = value.substr(0,1).toUpperCae();
return first + value.substr(1);
}