Angular 5 solely validation on blur?

前端 未结 3 1307
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 17:37

I wonder if it is possible to have the validation in reactive forms on blur. At the moment you can set updateOn: \"blur\" but then the values of the input fields wo

3条回答
  •  半阙折子戏
    2021-02-15 18:13

    updateOn is only a property accesor method. Input HTML tag has a event bind named blur could used for that convenience.

    URL to official doc. https://angular.io/guide/user-input#on-blur

提交回复
热议问题