angularjs - Angular UIRouter $state.go inside onEnter not passing params -
i trying pass $stateparams url non-child state , i'm coming blank. redirect working fine , console.log threw in there giving me expect, i'm not finding way params in other controller. have in state controller:
.state('vip', { url: '/vip/:name', onenter: ["$state", "$stateparams", function($state, $stateparams) { $state.go('leasee.two', {name: $stateparams.name} , {inherit: true}); console.log("name: " + $stateparams.name); }] });
what should accessing in other controller?
Comments
Post a Comment