angular pipe first letter uppercase angular pipe to capitalize first letter method for convert first letter in uppercase in angular

The solution for “angular pipe first letter uppercase angular pipe to capitalize first letter method for convert first letter in uppercase in angular” can be found here. The following code will assist you in solving the problem.

{{ 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);
}
});

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in