How can a number of watchers and digest cycle time affect the performance of the application?

devquora
devquora

Posted On: Feb 22, 2018

 

The working of digest cycle involves going to each and every watcher and informing it about the model change. This task will consume more time if the number of watchers will increase. Angular team has recommended implementing not more than 2000 watchers per page. To check the performance implications of digest cycle, we can use online tools like Batarang. These tools are mere extensions of google chrome & show the time taken by each digest cycle on a single page.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    AngularJS Basic Interview Questions

    What is AngularJS?

    AngularJS is a javascript framework which helps in developing web applications in MVC architectural pattern & SPA or..

    AngularJS Basic Interview Questions

    What are angular directives?

    Angular directives are the attributes which are decorated on the html tags or elements of an html page. Directives have ..

    AngularJS Basic Interview Questions

    What are custom directives?

    Angular provides the ability to create our own directives to implement our own custom templates or logic in our web appl..