How to remove whitespace in text

后端 未结 5 1207
夕颜
夕颜 2021-01-17 18:01

How can I trim a text string in my Angular application?

Example

{{ someobject.name }}  

someobject.name results in \"name abc\"

5条回答
  •  醉梦人生
    2021-01-17 18:23

    In my case this is bad:

    {{ someobject.name }}

    Solution:

    {{ someobject.name}}

    =S

提交回复
热议问题