HTML5 event handling(onfocus and onfocusout) using angular 2

前端 未结 5 1626
逝去的感伤
逝去的感伤 2020-12-02 13:46

I have a date field and I want to remove the place holder by default.

I am using javascript onfocus and onfocusout events for removing pl

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 14:34

    The solution is this:

      
       
         
          {{option.name | translate}}
         
      
    
    TS
    focusOut() {
    this.inputControl.disable();
    this.inputControl.enable();
    }
    

提交回复
热议问题