diff --git a/UI/WebServerResources/js/ContactsUI.js b/UI/WebServerResources/js/ContactsUI.js
index b63cbcc55..a444bd3e5 100644
--- a/UI/WebServerResources/js/ContactsUI.js
+++ b/UI/WebServerResources/js/ContactsUI.js
@@ -59,8 +59,7 @@
abstract: true,
views: {
card: {
- template: '',
- controller: 'CardCtrl'
+ template: ''
}
},
resolve: {
@@ -71,13 +70,21 @@
})
.state('addressbook.card.view', {
url: '/view',
- templateUrl: 'UIxContactViewTemplate', // UI/Templates/Contacts/UIxContactViewTemplate.wox
- controller: 'CardCtrl'
+ views: {
+ 'card@addressbook': {
+ templateUrl: 'UIxContactViewTemplate', // UI/Templates/Contacts/UIxContactViewTemplate.wox
+ controller: 'CardCtrl'
+ }
+ }
})
.state('addressbook.card.editor', {
url: '/edit',
- templateUrl: 'UIxContactEditorTemplate', // UI/Templates/Contacts/UIxContactEditorTemplate.wox
- controller: 'CardCtrl'
+ views: {
+ 'card@addressbook': {
+ templateUrl: 'UIxContactEditorTemplate', // UI/Templates/Contacts/UIxContactEditorTemplate.wox
+ controller: 'CardCtrl'
+ }
+ }
});
// if none of the above states are matched, use this as the fallback