Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go to grandparent state with ui-router

With ui-router I can use $state.go('^') to go to parent state without having to specify it's full path. Is there similar way to go to grandparent state (my parent state is abstract)?

In documentation examples I can see only ^ for parent, but maybe someone has good solution for this?

like image 387
Episodex Avatar asked Nov 04 '14 17:11

Episodex


Video Answer


1 Answers

You can transition to the grandparent state with

$state.go('^.^')
like image 101
Clive Avatar answered Sep 21 '22 06:09

Clive