title: $state transition after rejected promise Angular ui-router
body: <p>I'm using Angular ui-router and have a resolve function set up for one of my states, before the controller is initialized. I retrieve some data, loop through and  match it up the URL stateParam, and if a match is found, resolve the promise to the controller and return that object in the promise. That's all working well. </p>
  
  <p>However, if a match isn't found I simply want to redirect to a different state by rejecting the promise and running <code>$state.go('state');</code> </p>
  
  <p>Simply this: </p>
  
  <pre><code>deferred.reject();
  $state.go('state',{params: 'param'});
  </code></pre>
  
  <p>But this doesn't seem to do anything. The controller just hangs, and I get no console errors or anything. Any ideas?</p>
  
  <p><strong>This question apply to verion 0.xx, many things have changed in version 1.xx</strong></p>