Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • is there a way for the Vehicle class to create an instance of the Http class without having to inject the Http class when creating a vehicle instance? Commented Jun 14, 2016 at 13:18
  • Why do you not want to inject Http? Commented Jun 14, 2016 at 14:15
  • Because he wants to use it in his model. We had a similar question already today or yesterday. Using the Injector seems really hacky to me, though. :S Commented Jun 14, 2016 at 14:24
  • 1
    @rinukkusu that works great! I'm with you that it seems a little hacky but I'm not married to it just yet. Really just want to explore the different ways of encapsulating the required services/classes Commented Jun 14, 2016 at 14:57
  • HTTP_PROVIDERS was removed before the 2.0 release. How to do this now? Commented Feb 1, 2017 at 13:56