It's a trick so you can inject the correct things in the root of your app. If you build a module you need/can use in more as 1 module, the root module needs a slightly different set of things. The forRoot is a trick to specify the diff between root/normal modules.
Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
