Question : angular pipe capitalize
Answered by : victorious-vendace-t9zpb0z9t9rm
{{ value_expression | titlecase }}
Source : https://angular.io/api/common/TitleCasePipe | Last Update : Thu, 02 Jul 20
Question : uppercase angular pipe
Answered by : joy-dolphin
{{ value_expression | uppercase }}
Source : https://angular.io/api/common/UpperCasePipe | Last Update : Mon, 31 May 21
Question : angular capitalize pipe
Answered by : alex-latorre
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'capitalize'
})
export class CapitalizePipe implements PipeTransform { transform(value: string, ...args: string[]): string { return value.toLowerCase().charAt(0).toUpperCase() + value.toLowerCase().slice(1); }
}
Source : | Last Update : Mon, 07 Mar 22
Question : angular pipe to capitalize first letter
Answered by : abhay-pratap-chaudhary
transform(value:string): string { let first = value.substr(0,1).toUpperCase(); return first + value.substr(1);
}
Source : | Last Update : Fri, 17 Jul 20