title: Angular UI router - acess stateParams from other state
body: <p>I am beginner for Angular and I am sorry for my bad english. I find similar questions and answers but it doesn't help to my code... I want something like this</p>
  
  <pre><code>.state('members.detail', {
              parent: "members",
              url: "/:id",
              templateUrl: "templates/members.detail.html",
              controller: 'membersDetailsController'
          })
  
  .state('members.detail.fees', {
                  parent: 'members.detail',
                  url: '/fees',
                  views: {
                    'items': {
                      templateUrl: 'templates/tabs/tab2-fees.html',
                      controller: 'Fees'
                    }
                  }
          })
  </code></pre>
  
  <p>And I also have something like this:</p>
  
  <pre><code>myapp.controller('membersDetailsController', function($scope, $http, $stateParams) {alert($stateParams.id);}
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>&lt;a ui-sref=".fees" ng-class="{ active: $state.includes('members.detail.fees') }"&gt;Fees&lt;/a&gt;
  </code></pre>
  
  <p>I need id from first state to use in second state/fees-controller</p>
  
  <p>P.S. there is similar question about this but doesn't help me (or didn't understand quite good) <a href="https://stackoverflow.com/questions/21097820/angular-ui-router-how-to-access-parameters-in-nested-named-view-passed-from">Angular ui-router - how to access parameters in nested, named view, passed from the parent template?</a></p>