angular-loading-spinner icon indicating copy to clipboard operation
angular-loading-spinner copied to clipboard

Hide elements until loaded

Open bennypowers opened this issue 8 years ago • 0 comments

I'm trying to use angular-loading-spinner as a replacement for ng-cloak I want to hide my form until the data is loaded, but display a spinner until that point.

Right now I'm doing `

` This results in three loading stages: 1) before ajax begins: I see {{angular data}} on the page 2) Ajax begins, result not back yet: form hidden, spinner shown 3) ajax finished: complete form shown, spinner hidden.

What I want is

  1. form hidden, spinner shown
  2. "
  3. spinner hidden form shown

How can I achieve that?

Thanks for the great directive!

bennypowers avatar Mar 08 '16 22:03 bennypowers