title: Resolving dependency for $state.go in Angular UI Router
body: <p>I have a provider config which uses <code>$state.go</code> to jump to states. When I use <code>$state</code> as a function parameter it works, but when I try to modify the function parameters to support minification such as </p>
  
  <pre><code>.provider('Navigation',["$stateProvider","$state",function($stateProvider,$state)
  </code></pre>
  
  <p>then I get the following resolve dependency error :</p>
  
  <pre><code>Uncaught Error: [$injector:modulerr] Failed to instantiate module apfPrototypeJs due to:
  Error: [$injector:unpr] Unknown provider: $state
  </code></pre>
  
  <p>How to circumvent this problem?</p>