How to use onBlur event on Angular2?

前端 未结 7 1247
时光取名叫无心
时光取名叫无心 2020-12-02 21:36

How do you detect an onBlur event in Angular2? I want to use it with


Can anyone help me understand how to use i

7条回答
  •  失恋的感觉
    2020-12-02 22:21

    HTML

    
    

    TS

    removeSpaces(string) {
     let splitStr = string.split(' ').join('');
      return splitStr;
    }
    

提交回复
热议问题