Skip to content

change to child states don't show spinners #1

Description

@pdemilly

Let's say my index.html has a named view

<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 });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions