Which one is fast between $digest and $apply?

Answer Posted / chaitanya

$digest() is faster than $apply(), since $apply() triggers watchers on the entire scope chain

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of angular?

438


What is router-outlet directive in angular?

452


What set of modern browsers are supported in angular 2?

422


What’s the difference between dirty, touched, and pristine on a form element?

731


Do I need to worry about security holes in AngularJS?

460






Can you explain a situation, when to use dependency injection in angularjs?

405


What is representational state transfer (rest) in angularjs?

413


What is ngonchanges in angular 2?

422


Is @service a singleton?

432


What is hostlistener in angular?

400


How can you use “$rootscope” in angularjs?

503


How would you optimize the application for better performance in angular 2?

387


How do we create a singleton service in angular 2?

435


What does ng transclude do?

432


Explain the architecture overview of angular.

465