title: How to send and retrieve parameters using $state.go toParams and $stateParams?
body: <p>I am using AngularJS v1.2.0-rc.2 with ui-router v0.2.0. I want to pass the referrer state to another state so I use the <code>toParams</code> of <code>$state.go</code> like so:</p>
  
  <pre><code>$state.go('toState', {referer: $state.current.name});
  </code></pre>
  
  <p>According to the <a href="https://github.com/angular-ui/ui-router/wiki/Quick-Reference#stategoto--toparams--options">docs</a>, this should populate the <code>$stateParams</code> on the <code>toState</code> controller, but it is <code>undefined</code>. What am I missing?</p>
  
  <p>I've created a plunk to demonstrate: </p>
  
  <p><a href="http://plnkr.co/edit/ywEcG1">http://plnkr.co/edit/ywEcG1</a></p>