I'm looking at an Angular application that has ui-router set up such that
$stateProvider.state('thing-doer', {
url: '/thing/:id',
controller: 'ThingDoingCtrl',
views: {
'view': {
templateUrl: 'some/view/thingdoer.html',
controller: 'ThingDoingCtrl'
},
'onetypeofmode@thin-doer': {
templateUrl: 'some/view/modeone.html'
},
'anothermode@thing-doer': {
templateUrl: 'some/view/modetwo.html'
},//etc
The intention is a page with largely the same content but which switches between different modes where the user can do different things with the thing-doer
What is frustrating me is that if you fresh you go back to the base mode...
Is it possible to change the URL when changing between these views? Or is there a better way with ui-router to express the intent of a largely unchanging page which switches mode?