Hello, I'm still quite new to angular2, and I have a question about DI injection on components. Component has a providers attribute in order to allow DI of services, but I have seen most of the time this is not used at all and the Services are injected in the boostrap. I would like to understand why, and what is the difference?
Let's say I have 2 "standalone" components that requires the same service. If I set the providers attribute will this create 2 services ? Thanks. -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
