Open olimpiks opened 9 years ago
Make the attribute look like cg-busy="[arrayResource]"
instead and it will work.
Do you solve this?
I am try this:
cg-busy="{promise:[promise].message:'Loading',backdrop:true,templateUrl:'components/angular-busy/angular-busy.html'}"
and get error: https://docs.angularjs.org/error/$rootScope/infdig?p0=10&p1=%5B%5D
getting same error as @ivaaaan when trying his way
Same issue as above. You can do cg-busy="[arrayResource]"
just fine, but if you want access to your own template and try <div cg-busy="{promise:[arrayResource],templateUrl:'template.html'}"></div>
you will get a digest error
My solution: use cg-busy="[arrayResource]"
and configure your cg-busy
in module:
angular.module('your_app').value('cgBusyDefaults',{
message:'Loading Stuff',
backdrop: false,
templateUrl: 'my_custom_template.html',
delay: 300,
minDuration: 700,
wrapperClass: 'my-class my-class2'
});
Perfect @ivaaaan
Work:
Don't work - spinner is not shown: