Looking to access a nested state? Here's how it can be done in your routes.js:
.state('menu', {
url: '/side-menu-ineevent',
templateUrl: 'templates/menu.html',
abstract:true
})
.state('menu.settings.privacy_policy', {
url: '/privacy_policy',
views: {
'settings': {
templateUrl: 'templates/privacy_policy.html'
}
}
})
.state('menu.settings', {
url: '/settings',
views: {
'side-menu-ineevent': {
templateUrl: 'templates/settings.html',
controller: 'Settings'
}
}
})
Trying to access the privacy_policy but facing difficulties? Various paths like
href="#/side-menu-ineevent/settings/privacy_policy"
have been tested without success. Any suggestions?