News for hackers. Stuff that matters.
Re:Using AngularJS at Localytics by pjstarifa on Thursday April 11, 2013 @01:18PM (#5533337)
The difference is onclick="doSomething()" runs doSomething() in the global scope. Not good!

ng-click="doSomething()" runs doSomething() in the scope of the controller that contains the element. Good!

There are no comments on this comment yet.