title: $state.go within a .config Angular
body: <p>Using the following to catch 401's in my app</p>
  
  <pre><code>.config(['$httpProvider', function($httpProvider) {
  $httpProvider.interceptors.push(function($q) {
      return {
          'responseError': function(rejection){
              var defer = $q.defer();
              if(rejection.status == 401){
                    $state.go('login', {}, {reload: true, inherit: false});
              }
              defer.reject(rejection);
              return defer.promise;
          }
      };
  });
  }]);
  </code></pre>
  
  <p>I know the <code>$state.go</code> won't work as it can't be injected. How do I pull up my login page in this state.  </p>