import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'toUpperCase' , } ) export class ToUpperCasePipe implements PipeTransform { transform ( value ) { const temp = value . split ( '' ) ; temp [ 0 ] = temp [ 0 ] . toUpperCase ( ) ; const newStr = temp . join ( '' ) ; return newStr ; } }