title: ui-router deferIntercept and state params
body: <p>I use the new deferIntercept() of ui-router to update the browser url without reloading
  my controller:</p>
  
  <pre><code>$rootScope.$on('$locationChangeSuccess', function(e, newUrl, oldUrl) {
    e.preventDefault();
    if ($state.current.name !== 'search') {
      $urlRouter.sync();
    }
    $urlRouter.listen();
  });
  </code></pre>
  
  <p>With this code, a click on the browser's  back button changes the URL to the previous one, but I'm not able to update my controller state to mirror this change. 
  $stateParams still contains the values set when the user first loaded the page.</p>
  
  <p>What's the best way to update the $state and $stateParams objects inside my controller when the user click the back button or change the URL manually ?</p>
  
  <p>thanks !</p>