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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -