angular-hotel-manager/src/text.pipe.ts

12 lines
232 B
TypeScript
Raw Normal View History

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');
}
}