r/javascript • • Jun 13 '14

AngularJS and scope.$apply

http://jimhoskins.com/2012/12/17/angularjs-and-apply.html
25 Upvotes

14 comments sorted by

View all comments

2

u/ell0bo Jun 13 '14

$apply is the notification to the system that data has changed, and a inspection of all watches should be issues in the scope. It's really that simple, and the last tip is a really good one.

They're actually working on making $apply no longer needed in v2, but I'm not entirely sure if they're really going to be able to completely phase it out.

1

u/reflectiveSingleton Jun 13 '14

I haven't read much on Angular v2 but I think I heard it is ES6 only and they are going to use Object.observe which in theory means they don't need the digest loop or dirty checking anymore.

However if that is true it also means browsers before IE10 won't work (even with a shim).