Tuesday, June 16, 2015

What are AngularJS Services?

AngularJS services can be considered as re-usable utility classes / functions which are defined once and can be accessed anywhere in the application. Services enable modular and re-usability while designing complex applications in AngularJS.

While designing complex AngularJS applications, re-usable code which can be used in more than one view/controller should be placed in the services this way we can avoid redundancy of the same code across different controllers and views.

Services are singleton objects or methods which perform a unit of task.

In the following posts we shall see in details about the advantages and types of services provided by AngularJS.

Search Flipkart Products:

No comments: