<input type='text' ng-focus='tryFunc()'> </input>
The function tryFunc()
is not called when the input box is focused.
I am including jQuery.min.js
in the file and it is before angular.min.js
jQuery is version v1.10.2 and Angular.js is v1.0.7.
What may be happening?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With