rascio
rascio

Reputation: 9279

angular.js ng-focus and ng-bind expressions

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?

http://jsfiddle.net/TgNae/

Upvotes: 2

Views: 2743

Answers (1)

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

Related Questions