Tagged: AngularJS services

providers,services,factory 1

#12 – Difference between Factory, Service and Providers

AngularJS provides a few different ways in which we can to create and register services (and constants and values), depending on our preference and style of programming. In the previous section, we used the...

angularjs service 1

#11 – Building a custom AngularJS Service

We saw how to use AngularJS services through the use of some built-in AngularJS services. We will be using the ones previously mentioned extensively throughout the blog going forward, so don’t worry that we...

dependency injection 0

Dependency Injection and in-built services

Dependency Injection in AngularJS The entire service concept in AngularJS is heavily dependent on and driven by its Dependency Injection system. Any service known to AngularJS (internal or our own) can be simply injected...

AngularJS Services 0

AngularJS Services (Service VS Controllers)

Until now, we have dealt with data-binding in AngularJS. We have seen how to take data from our controllers and get it into the UI, and ensure that whenever the user interacts with or...