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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -