@akkari97 wrote:
hello , i created a costume pipe with this code
import { Pipe, PipeTransform } from ‘@angular/core’;/**
- Generated class for the CapitalizeFirstPipe pipe.
- See https://angular.io/api/core/Pipe for more info on Angular Pipes.
/
@Pipe({
name: ‘capitalizeFirst’,
})
export class CapitalizeFirstPipe implements PipeTransform {
/*
- Takes a value and makes it lowercase.
*/
transform(value: string, …args) {
return value.toLowerCase();
}
}
and i called this pipe with this code
{{ bouquet.nom | capitalizeFirst }}
but no thing changed , can you tell me what’s rong ?
Posts: 1
Participants: 1