How can I remove all string spaces in AngularJS binding?

前端 未结 7 1128
南方客
南方客 2020-12-29 06:09

I try to do this:

but its not working. \"mystring\" is an object on

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 06:55

    removeSpaces() {
      originalText ="hi! here i'm";
      removedSpacesText = originalText.split(" ").join("");
    }
    

提交回复
热议问题