Hi Ankit, It's actually quite simple. Use a service. <-- notice the big dot there ;) But on a more serious account. just use a service. The only time you need a provider, is if you need to be able to configure your service during the config time of your app. That is only possible using a provider. Some people will disagree with me on this, others <http://blog.thoughtram.io/angular/2015/07/07/service-vs-factory-once-and-for-all.html>took a long time to agree with me. On scale, it doesn't really matter as one is just syntactic sugar over the other.
Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
