Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
6 events
when toggle format what by license comment
May 16, 2016 at 6:58 comment added Pankaj Parkar @SSH because OP wanted to get dependency object dynamically, there might be a case with OP, where sometimes he might have added service/factory in app module, based on some condition in controller using $injector dependency (The reason I haven't added in DI array is, it will throw an error when dependency isn't there module)
May 16, 2016 at 6:51 comment added Hadi I mean injection service elsewhere? Why don't be injected at first?
May 16, 2016 at 6:45 comment added Hadi @PankajParkar, What do I do?I mean injection service elsewhere?
May 16, 2016 at 6:39 comment added Pankaj Parkar @SaeedNeamati what I understood from question is, OP wants to add/access 3rd(other) dependency, which he wanted to add later(this is what I assumed), let see what OP wants.. he will comment on it.. correct me if I'm missing anything. Though thanks for heads up.. :)
May 16, 2016 at 6:36 comment added Saeed Neamati OP says somewhere else. I think this can't be then answer. Because in this case why not simply injecting myService in the first place?
May 16, 2016 at 6:33 history answered Pankaj Parkar CC BY-SA 3.0