Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular pipe to capitalize first letter

transform(value:string): string {
  let first = value.substr(0,1).toUpperCase();
  return first + value.substr(1); 
}
  
Source by angular.io #
 
PREVIOUS NEXT
Tagged: #angular #pipe #capitalize #letter
ADD COMMENT
Topic
Name
2+5 =