title: use $http inside custom provider in app config, angular.js
body: <p>The main question - is it possible? I tried with no luck..</p>
  
  <p><strong>main app.js</strong></p>
  
  <pre><code>...
  var app = angular.module('myApp', ['services']);
  app.config(['customProvider', function (customProvider) {
  
  }]);
  ...
  </code></pre>
  
  <p><strong>provider itself</strong></p>
  
  <pre><code>var services = angular.module('services', []);
  services.provider('custom', function ($http) {
  });
  </code></pre>
  
  <p>And I've got such error:</p>
  
  <pre><code>Uncaught Error: Unknown provider: $http from services 
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>