Base solution for your next web application
Open Closed

Display abp.Uibusy during route load #1945


User avatar
0
justin created

i have my route defined using , but when i switch between diffrent route how can i use abp.ui.busy() to display loading icon? currently it does not display anything indicating a load is in progress.

$stateProvider
                .state('home', {
                    url: '/',
                    templateUrl: '/App/Main/views/home/home.cshtml',
                    menu: 'Home' //Matches to name of 'Home' menu in EMRNavigationProvider
                })

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can use Angular's "State Change Events" for that. Call abp.ui.setBusy() in the $stateChangeStart and abp.ui.clearBusy() in the $stateNotFound, $stateChangeSuccess and $stateChangeError. See <a class="postlink" href="https://github.com/angular-ui/ui-router/wiki">https://github.com/angular-ui/ui-router/wiki</a>