title: Angular ui-router - how to access parameters in nested, named view, passed from the parent template?
body: <p>Hi I am trying to access a parameter in the controller "ViewWorklogCrtl" while using ui-router and running into difficulty. </p>
  
  <p>Basically, my parent template contains:</p>
  
  <pre><code>a(ui-sref="instance-ticket.worklog({id:{{ticket.testnum}}})") show
  </code></pre>
  
  <p>and then further down the page:</p>
  
  <pre><code>section(ui-view="top-section")
  </code></pre>
  
  <p>Then in my app.js, containing client-side routing info in short I have:</p>
  
  <pre><code> $stateProvider
  .state('instance-ticket', {
    url: '/ticket/:instanceID',
    templateUrl: 'partials/instance-ticket',
    controller: 'ViewTicketCrtl'
  })
  .state('instance-ticket.worklog', {
    views:{
      'top-section':{
        templateUrl:'/partials/ticket.worklog.jade',
        controller: 'ViewWorklogCrtl'
        }
    }
    })
  </code></pre>
  
  <p>The template loading is working correctly, the issue and question I can't find an answer to is - how to access "testnum" being passed through the ui-sref link, to and within the ViewWorkLogCtrl... Is there a better approach to this? </p>
  
  <p>Much thanks!!!</p>