In my angular app, using UI-Router, have a parent state(page) that has some header information and then a navlist populated with the child routes of this parent.
It's working great, but it starts without any children active.
I'd like to activate the first child state when a user goes to the unadorned parent state (I have no way to know which child id will be the first one, although I could fetch that in the parent Controller)
Consider this code:
$stateProvider
.state('parent', {
    url: '/parent',
    templateUrl: 'app/parent/parent.html',
    controller: 'ParentController',
    controllerAs: 'prnt'
  })
  .state('parent.child', {
    url: '/parrent/{childId}',
    templateUrl: 'app/parent/childlist.html',
    controller: 'ChildController',
    controllerAs: 'chld'
  });
Thanks in advance for the help.
 
     
    