quack-angular/src/app/at.pipe.ts

14 lines
233 B
TypeScript
Raw Normal View History

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