How can you increase the performance of your angular application or decrease digest cycle time?

devquora
devquora

Posted On: Feb 22, 2018

 

The following are the best practices to be followed while working with AngularJS framework. Following these methods increase the performance of the angular application.

  1. Remove unnecessary watchers and thus reduce digest cycle time.
  2. Use two way binding only if essential, otherwise prefer one-way binding.Especially in case of ng-repeat.
  3. Implement caching of DOM.

    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..