Summery - I have two states. Both of them have two views in them col1 and col2. In both states col1 has same templateUrl i.e. FirstTemplate.html.
Question - How can I change from state one to state two without reloading FirstTemplate.html.
I have done this by making state two a child of state one and it is working fine that way, but I find it to be an incomplete solution since parent-child structure is not suitable for me in some scenarios.
$stateProvider .state('one',{ views: { 'col1': { templateUrl: 'FirstTemplate.html' }, 'col2': { templateUrl: 'SecondTemplate.html' } }, .state('two',{ views: { 'col1': { templateUrl: 'FirstTemplate.html' }, 'col2': { templateUrl: 'ChangedTemplate.html' } } })