14 lines
233 B
TypeScript
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;
|
||
|
}
|
||
|
|
||
|
}
|