How can I trim a text string in my Angular application?
Example
{{ someobject.name }}
someobject.name results in \"name abc\"
Replace all the whitespace between string
let spaceReg = new RegExp(" ",'g');
let str = "name abc"
str = str.replace(spaceReg,"");