11 lines
232 B
TypeScript
11 lines
232 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({
|
|
name: 'text',
|
|
standalone: true,
|
|
})
|
|
export class TextPipe implements PipeTransform {
|
|
transform(value: string): string {
|
|
return value.replaceAll('L', 'P');
|
|
}
|
|
}
|