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.
source share