quack-angular/src/app/at.pipe.ts
2024-05-11 15:41:29 +02:00

14 lines
233 B
TypeScript

import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'at',
standalone: true
})
export class AtPipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): string {
return '@'+value;
}
}