import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'trimSpace' } ) export class TrimSpacePipe implements PipeTransform { transform ( value , args ) { return value . replace ( / /g , '' ) ; } }