Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gain access to $cgBusyIsActive() #118

Open
davfive opened this issue Feb 13, 2019 · 0 comments
Open

Gain access to $cgBusyIsActive() #118

davfive opened this issue Feb 13, 2019 · 0 comments

Comments

@davfive
Copy link

davfive commented Feb 13, 2019

I'm using minDuration because the action is quick but I'm "Checking for updates ..." and I want to leave it up long enough for them to read.

<div cg-busy="$ctrl.updatesBusy">
  <div ng-show="$ctrl.updateResult.done">
    ...
   </div>
</div>

However, the content in the second div will show behind the cgBusy while it's finishing up because my promise completed but cg-busy is still displaying. I want my div to show after cgBusy goes away.

In looking at the code, there is a call which is used in the directive for it's ng-show, that would be perfect for me: $cgBusyIsActive(). Then I could do

<div ng-show="!$cgBusyIsActive() && $ctrl.updateResult.done">

It is created, however, in a child scope, so I don't have access to it. It would be great to be able to have this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant