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); 
}
  
 
PREVIOUS NEXT
Tagged: #angular #pipe #capitalize #letter
ADD COMMENT
Topic
Name
4+2 =