top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the differences between AngularJS module's Service, Provider and Factory?

+3 votes
402 views
What are the differences between AngularJS module's Service, Provider and Factory?
posted Dec 29, 2014 by Khusboo

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes
 
Best answer

These are the actually Dependency injection techniques in angularjs. The link below explains in detail the difference between them and why these should be used.
https://github.com/angular/angular.js/wiki/Understanding-Dependency-Injection
While Provideris more complex than factory than is from service, u will see that Provider provides a lot of configurations. By the way i think the link above is the best document i found when i was trying mess up my head around these craps.

answer Dec 29, 2014 by Prakash
...