Oh, Yes, I think now I am in a better state :P. I had fully understood that providers return 2 things (unlike factories and services), even though I had understood that they only can be injected in config(). So, factories, services and providers (in fact, the factories returned by providers) can all be injected in controllers. However, only providers (which are like the ''wrappers'' of factories and services) can be injected in config() function.
Thanx a lot!! > > -- 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.
