13 lines
218 B
TypeScript
13 lines
218 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({
|
|
name: 'trim'
|
|
})
|
|
export class TrimPipe implements PipeTransform {
|
|
|
|
transform(value: string, ...args: string[]): string {
|
|
return value.trim();
|
|
}
|
|
|
|
}
|