Angular - Pipes
What will be the output of this pipe usage?
Template:
@Pipe({name: 'exclaim'})
export class ExclaimPipe implements PipeTransform {
transform(value: string, times: number = 1): string {
return value + '!'.repeat(times);
}
}Template:
{{ 'Hi' | exclaim:3 }}