In my HTML I have three columns where I am rendering 3 different HTML templates.
<div id="col1" ui-view="col1"></div>
<div id="col2" ui-view="col2"></div>
<div id="col3" ui-view="col3"></div>
State demo which will render all this is like following.
$stateProvider
.state('demo',{
views: {
'col1': {
templateUrl: 'FirstTemplate.html'
},
'col2': {
templateUrl: 'SecondTemplate.html'
},
'col3': {
templateUrl: 'ThirdTemplate.html'
}
}
})
My question is, how can I change templateurl
of col3
from ThirdTemplate.html
to NewTemplate.html
, without changing the state.