title: Acess parameters of parent state from child state in stateChangeStart
body: <p>Is there any way to get the parameters from parent state.</p>
  
  <p>My states look like this.</p>
  
  <pre><code>    $stateProvider
          .state('home', {
              url: '/home/:param1',
              template: '&lt;div&gt;home&lt;ui-view /&gt;&lt;/div&gt;',
              data: {
              parentdata: 'parentdata'
                  }
            })
          .state('home.child', {
              url: '/child/:param2',
              template: '&lt;div&gt;index&lt;/div&gt;',
              data: {
              childdata: 'childdata'
                  }
            })
  })
  </code></pre>
  
  <p>I want to access the data value of parent state from child state.</p>
  
  <pre><code> $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {    
       var tosateParam = toState.data.mycustomparam;     
       //If this is the child state, how can I access the parent state param     
        //may be like this toState.parent.data.parentParam
  
  
     });
  </code></pre>
  
  <p>If my current state name is <code>"ABC.childstate"</code>, how can I access the parameters from <code>ABC</code> state.</p>