Change only one kind of state change in ui.router?

I have a simple layout:

__________________ ________ | | | Side | | Main section | | -bar | |________________| |______| 

The "main section" provides forms to the user; based on their choice, which should change the "Main section" of the state (that is: you need to load another particle). How can I make this easier with UI.router ?

For example: change only columnOne in the /about state: http://plnkr.co/edit/IzimSVsstarlFviAm7S7

+6
source share
1 answer

When the state changes, all new types of states and states of any of the ancestors will be loaded. Therefore, if you want view A to remain unchanged while view B changes to view C, then view. The state must be the ancestor of the representations B and C. Therefore, you need to have an intermediate (possibly abstract) state.

Here is the Plunker.

+9
source

Source: https://habr.com/ru/post/970667/


All Articles