bar.pipe.ts 297 B

123456789101112131415
  1. import { PipeTransform, Pipe, OnDestroy } from '@angular/core';
  2. @Pipe({
  3. name: 'bar',
  4. standalone: true
  5. })
  6. export class BarPipe implements PipeTransform, OnDestroy {
  7. constructor() {}
  8. transform(value, args) {
  9. return 'StandAlone Pipe ;)';
  10. }
  11. ngOnDestroy(): void {}
  12. }