Hello,

I'm quite new to angular 2 and I would like to better understand the 
dependency injection system.

   1. I have seen that we should inject them on each component when 
   required.
   2. But I have also seen that we can inject several of them at once using 
   a grouped tag (DIRECTIVES for example).
   3. I have also seen that we can inject the dependencies globally on 
   bootstrap (for example for angular default directives or very frequently 
   used directives).

I would like to know what are the cons and pros(performance, code size, 
test-ability ... ) of each implementations. Which one is the recommended 
one or if we should combine then according to the situation.


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.

Reply via email to