Reputation: 9279
I would like to know when an input element is active, to achieve this I thought about the ng-focus
and ng-blur
directives, but these directives won't work...
Here I have a jsFiddle example, why it doesn't work?
Upvotes: 2
Views: 2743
Reputation: 12146
ng-blur was added in 1.2.0, and your example uses 1.1.1. If you use this version instead of current, it works just fine.
Upvotes: 4