<ui-loading-view name="main" root-state="wep"></ui-loading-view>
and I define my router with a a hierarchy of states. the spinner won't show when changing from wep.contacts state to wep.contacts.edit state.
$stateProvider.state ('wep', {
url: '/',
abstract: true,
resolve: {
}
})
.state ('wep.contacts', {
url: '/contacts',
views: {
'main@': {
template: '<h1>Contacts view</h1><button ui-sref=".edit">Edit</button>'
controller: 'wep.contacts.controller',
controllerAs: 'vm',
},
contactList: function ($timeout) {
$timeout (function () { return [], 5000 });
});
}).state ('wep.contacts.edit', {
url: '/edit',
views: {
'main@': {
template: '<h1>edit contact view</h1>'
controller: 'wep.contacts.edit.controller',
controllerAs: 'vm',
},
resolve: {
contact: function ($timeout) {
$timeout (function () { return { name: John Doe' }, 5000 });
});
Let's say my index.html has a named view
and I define my router with a a hierarchy of states. the spinner won't show when changing from wep.contacts state to wep.contacts.edit state.