title: Ui-router: How to get next state params in transition
body: <p>I'm using ui-router 1.0.0.beta.3. How can get I route parameters of next state during a transition?</p>
  
  <p>index.run.js</p>
  
  <pre><code>$transitions.onStart({ to: '**' }, verifyAuth);
  
  function verifyAuth(trans) {
    let nextState = trans.$to();
    if (Auth.verify(nextState.authGroup) === -1) {      
      return $state.go('login', { nextState: nextState.name, nextParams: nextState.params}); // this doesn't work
    }
  }
  </code></pre>
  
  <p>I want to store them so I can redirect the user to the state + state params he was trying to access, after authentication is succeeded. </p>
  
  <p>login.component.js</p>
  
  <pre><code>let nextState = this.$stateParams.nextState;
  let nextParams = this.$stateParams.nextParams;
  $state.go(nextState, nextParams);
  </code></pre>