removespaces.ts 227 Bytes
Newer Older
Open Source Developer's avatar
UI    
Open Source Developer committed
1
2
3
4
5
6
7
8
import {Pipe, PipeTransform} from '@angular/core';
 
@Pipe({
	name : "removeSpaces"
})
 
export class RemoveSpaces implements PipeTransform {
	transform(value: string) : any {
Open Source Developer's avatar
UI    
Open Source Developer committed
9
    	return value.replace(/[\s]/g, '');
Open Source Developer's avatar
UI    
Open Source Developer committed
10
11
12
13
14
15
16
17
	}
}