title: confusion in config phase of an angular js app
body: <pre><code>.config(['$provide', function ($provide) {
      $provide.decorator('$log', [
          '$delegate',
          function $logDecorator($delegate) {
              console.log("delegaete")
              var originalWarn = $delegate.warn;
              $delegate.warn = function decoratedWarn(msg) {
                  msg = 'Decorated Warn: ' + msg;
                  originalWarn.apply($delegate, arguments);
              };
  
              return $delegate;
          }
      ]);
      console.log("config")
  }]);
  </code></pre>
  
  <p>Now as we know that in config phase services are not instantiated. $provide is also a service. Then how come we use it in config phase.?</p>
  
  <p>Another is now $deligate is the instance of the service. And we are writing the service in config function when its not instantiate. So how can we do that? can some one tell me the step by step bootstrapping process? When this .decorate call?After services get instantiated????</p>
  
  <p>BIG CONFUSION</p>