title: Global parameter in ui-router
body: <p>I'm using ui-router in AngularJS like this:</p>
  
  <pre><code>.state
  ('browse.category', {
        url: "/:category",
        templateUrl: "views/browseCategory.html",
        controller: function($stateParams, $scope) {
          $scope.params = $stateParams;
        }
      })
  </code></pre>
  
  <p>How can I make the <code>$stateParams</code> variable global so I can access it in any view / controller?</p>
  
  <p>Right now I can only access the parameters in the nested view.</p>