AngularJS loading message/please wait -


how can achieve following in angularjs:

enter image description here

if have page show widgets , each widget has button called refresh. when button clicked content of widget reloaded server. while content reloaded want show user message within widget, please wait ... possible fading effect.

how can achieve in angularjs?

i kind of taught having common service purpose , somehow each widget controller use service or that, maybe directive show actual loading/please wait message?

what advise?

p.s. there should loading/please wait message fading whole page, when route changing ... switching between pages.

in recent project i'm using https://github.com/cgross/angular-busy

very nice thing, have put promise $scope, , add cg-busy attr element should have spinner (beside registering module obviously):

controller:

$scope.mypromise = restangular.get('something',12).then(function(response) { ... }) 

html:

<div cg-busy="mypromise"></div> 

you can customize template that's gonna displayed (which includes spinner , text message).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -