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)
-
0
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>