You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just discovered angular busy and have fallen in love with it. I'm adding it on buttons, forms, tabs... everywhere hehe. The combination of ng-show="something.$resolved" and cg-busy="something.$promise" has made my day.
The only issue I am currently facing is when I am on a view with ng-busy that is displaying content that resulted from the same promise that is bound on ng-busy. When I try to refresh the data ng-busy sees the promise and shows up the loading sign (as it should). But since I have data showing, I'd like to allow the user to keep seeing them and show the loading somewhere else.
To do so it would require something like cg-busy-unless="something.length>0" so cg-busy doesn't get triggered if length>0. This way I could have 2 cg-busy divs, one for when there is no content (length=0) and one for when there is (length>0).
I am pretty sure there are more things that this could be used for.
ps. Thank you for your amazing work. This is my new favorite ng module! :)
The text was updated successfully, but these errors were encountered:
You can pass any expression to the directive (the result of the expression should just be a promise, or a config object, or falsy value). So you could do something like:
I've just discovered angular busy and have fallen in love with it. I'm adding it on buttons, forms, tabs... everywhere hehe. The combination of
ng-show="something.$resolved"
andcg-busy="something.$promise"
has made my day.The only issue I am currently facing is when I am on a view with
ng-busy
that is displaying content that resulted from the same promise that is bound onng-busy
. When I try to refresh the datang-busy
sees the promise and shows up the loading sign (as it should). But since I have data showing, I'd like to allow the user to keep seeing them and show the loading somewhere else.To do so it would require something like
cg-busy-unless="something.length>0"
socg-busy
doesn't get triggered iflength>0
. This way I could have 2cg-busy
divs, one for when there is no content (length=0
) and one for when there is (length>0
).I am pretty sure there are more things that this could be used for.
ps. Thank you for your amazing work. This is my new favorite ng module! :)
The text was updated successfully, but these errors were encountered: