ui-router move from nestedState to another parentState -


i can't seem navigate directly parenta.childstate parentb state. how 1 in 1 move?

$stateprovider.state(     'parenta',     {         url: '/parenta',         template: '<p>parent <ui-view /></p>',         controller: function() {}     } ).state(     'parenta.childstate',     {         url: '/childa',         template: '<span>child a</span>',         controller: function(){}     } ).state(     'parentb',     {         url: '/parentb',         template: '<span>parent b</span>',         controller: function(){}     } ); 

assume application @ state parenta.childstate , click link below should take me parentb state.

<a ui-sref="parentb">link goes parenta state</a> 

how can go directly parentb state?

thanks help.

answering own question. i'm asking here default behavior. should work out of box. problem own code interrupting redirect.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -