angular pipe first letter uppercase
snippet in javascript

angular pipe first letter uppercase

user3174

{{ value_expression | titlecase }}

angular pipe to capitalize first letter

user314

transform(value:string): string {
  let first = value.substr(0,1).toUpperCase();
  return first + value.substr(1); 
}