Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSergio Garcia
1,263 Pointsangular ng-blur doesn't fire
i've been trying to use this event, but doesn't work at all, i've even try copy paste codes from internet but none fire, I tried this from internet and didn't work:
<!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body ng-app="">
<input ng-blur="count = count + 1" ng-init="count=0" />
<h1>{{count}}</h1>
<p>This example will increase the value of the variable "count" every time the input field loses focus.</p>
</body> </html>
1 Answer
Jennifer Nordell
Treehouse TeacherWhat browser are you using and have you tried clearing the cache? I've tested this in both Firefox and Chrome and it works for me without changing any of your code (other than formatting it correctly). Hope you get it working!