directive to display first letter capitalize in angular code example
Example: angular pipe to capitalize first letter
transform(value:string): string {
let first = value.substr(0,1).toUpperCase();
return first + value.substr(1);
}
transform(value:string): string {
let first = value.substr(0,1).toUpperCase();
return first + value.substr(1);
}