Why we need angular services?

devquora
devquora

Posted On: Feb 22, 2018

 

AngularJS achieves the separation of concerns using”Services”. Services are nothing but singleton objects which gets instantiated only once in an applications life cycle and are mainly used to separate a unit of logic which is needed almost everywhere in the application.

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