Ui-router does not fulfill the promise of resolving the parent state when using $ state.go ()

I have an abstract parent state with a promise of a solution that returns information about the current user. This information is entered into the controllers of all child states.

However, when I use $state.go('parent.child'), the promise promise function is not fulfilled. If I look at a URL representing this state, but it works fine.

Do I need to specify a permission object in each child state and omit it from the parent?

+4
source share
2 answers

$stateParams. $stateParams , , .

, , - , , .

plunk.

$stateParams , . $state.go ui-sref ( ) . $stateParams , .

+9

, , . . , . $stateParams, .

0

All Articles