Hi Cristophe, The difference in costs is neglectable. (The global ones are slightly more "costly" as those lookups need to traverse up the whole component tree, but I highly doubt you can even measure this!). Those 3 ways are available to use as you see fit best. Indeed according to the situation.
The global ones are usually needed for things like authentication and authorization, but also think of system-wide services (toast, context-sensitive menus etc) Things that are not global, but frequently used as a set, should go to a grouped tag. for example, if you have a chopping-chart, you probably also have products, and some services that are centered around those. Whatever is left-over you inject on its own. My feeling is that we will gravitate mostly to groups with a few globals. with an occasional 'single' injection where we need some extra control. 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
