Addressbook module: improve routing views handling
This commit is contained in:
parent
766c421b53
commit
2edfd1863b
|
@ -59,8 +59,7 @@
|
||||||
abstract: true,
|
abstract: true,
|
||||||
views: {
|
views: {
|
||||||
card: {
|
card: {
|
||||||
template: '<ui-view/>',
|
template: '<ui-view/>'
|
||||||
controller: 'CardCtrl'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
@ -71,13 +70,21 @@
|
||||||
})
|
})
|
||||||
.state('addressbook.card.view', {
|
.state('addressbook.card.view', {
|
||||||
url: '/view',
|
url: '/view',
|
||||||
templateUrl: 'UIxContactViewTemplate', // UI/Templates/Contacts/UIxContactViewTemplate.wox
|
views: {
|
||||||
controller: 'CardCtrl'
|
'card@addressbook': {
|
||||||
|
templateUrl: 'UIxContactViewTemplate', // UI/Templates/Contacts/UIxContactViewTemplate.wox
|
||||||
|
controller: 'CardCtrl'
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.state('addressbook.card.editor', {
|
.state('addressbook.card.editor', {
|
||||||
url: '/edit',
|
url: '/edit',
|
||||||
templateUrl: 'UIxContactEditorTemplate', // UI/Templates/Contacts/UIxContactEditorTemplate.wox
|
views: {
|
||||||
controller: 'CardCtrl'
|
'card@addressbook': {
|
||||||
|
templateUrl: 'UIxContactEditorTemplate', // UI/Templates/Contacts/UIxContactEditorTemplate.wox
|
||||||
|
controller: 'CardCtrl'
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// if none of the above states are matched, use this as the fallback
|
// if none of the above states are matched, use this as the fallback
|
||||||
|
|
Loading…
Reference in a new issue