title: Can access $stateParams in "view" but not in the controller
body: <p>I'm going through the AngularUI Router sample app in <a href="http://angular-ui.github.io/ui-router/sample/#/" rel="nofollow noreferrer">http://angular-ui.github.io/ui-router/sample/#/</a></p>
  
  <p>I think I understand in general what is going on and have been able to implement something similar for my app.</p>
  
  <p>My question is that it seems that you can access <code>$stateParams</code> from "View" files (e.g. <a href="https://github.com/angular-ui/ui-router/blob/master/sample/contacts.html" rel="nofollow noreferrer">https://github.com/angular-ui/ui-router/blob/master/sample/contacts.html</a> - where it refers to <code>$stateParam</code>), but when I access the <code>$stateParams</code> in the controller, it returns an empty object. (<a href="https://github.com/angular-ui/ui-router/blob/master/sample/states.js#L83" rel="nofollow noreferrer">https://github.com/angular-ui/ui-router/blob/master/sample/states.js#L83</a>)</p>
  
  <p>So I guess what I'm trying to do is access the state of the child view in the parent view controller via <code>$stateParam</code>s, but it's an empty object.</p>
  
  <p>Instead, I can get the state by doing <code>$state.params.PARAMETER_NAME</code>.</p>
  
  <p>Why is that?</p>