Attach data dynamically to state.go function and retrieve in resolve property
问题 I have a parent state: .state('schoolyears', { url: '/schoolyears', views: { 'menu@': { template: '<h1>Start your schoolyear action...</h1>' }, 'content@': { templateUrl: "../views/schoolyear/schoolyears.html", resolve: { schoolyears: function (schoolyearService) { return schoolyearService.getSchoolyears(); } }, controller: 'SchoolyearsController' } } }) .state('schoolyears.selected', { url: '/:id' }) and a child state: .state('schoolyears.selected.dates.day', { url: '/day/:year-:month-:day',