Unknown provider: $httpProvider <- $http
<p>I'm having an issue with dependency inject in Angular. I've done a simple example to demonstrate the error I'm getting</p>

<pre><code>function MyService($http) {
    this.doIt = function () {
       console.log("done");
    }
}

var myModule = angular.module("myModule", []);

myModule.service("myService", ['$http', MyService]);

var prx = angular.injector(['myModule']).get('myService');
prx.doIt();
</code></pre>

<p>The error I'm getting is "Unknown provider: $httpProvider &lt;- $http &lt;- myService"</p>

<p>So i'm assuming its something to do with the injection. </p>

<p>In my case i need to use the angular injector because i'm trying to integrate a new client library with an old application that isn't written with Angular.</p>