ng-focus and ng-blur events not triggering in Angularjs

前端 未结 2 502
感动是毒
感动是毒 2021-01-02 11:18
 

The function tryFunc() is not called when the input box is focused.

相关标签:
2条回答
  • 2021-01-02 11:41

    works with version 1.2.17 See demo

    https://gist.github.com/anonymous/35636e7c020d50aeab18

    0 讨论(0)
  • 2021-01-02 11:51

    ngFocus is not available on Angular 1.0.7. It's available on Angular 1.2.

    You can create your own ngFocus directive, it's quite simple, have a look here:

    https://gist.github.com/eliotsykes/5394631

    0 讨论(0)
提交回复
热议问题