Search SSWUG.ORG:

DATABASES

Using $scope.$digest() As A Performance Optimization In AngularJS This is an off-site link.  Please review our Terms of Service for additional information.




(Ben Nadel) The other day, I was listening to Brian Genisio, on the Front-End Developer Cast, when I heard him draw a distinction between the $apply() method and the $digest() method in AngularJS. The $apply() method will trigger watchers on the entire $scope chain whereas the $digest() method will only trigger watchers on the current $scope and its children. Definitely a specialized case - but, this struck me as an opportunity for some micro-optimizations in my AngularJS applications.

Read this article...







comments powered by Disqus