Hello All, 

I'm having an issue with ng-show when the page is loading and making a 
requests. 

My app has a list with the html looking like this 

<ul ng-show="todo.length">
...
</ul>

And a button when the list is empty

<button ng-show="!todo.length">myButton</button>


My issue is , that my list is being populated on app load by a service 
call. So initially when the app loads the list is empty, and shows the 
button, but a second later the list fills, the button disappears and the 
list reappears. Everything works as expected, except for that flicker. Its 
a 1 second flicker that is waiting for that list to appear. Is there some 
different approach to this situation? When the app loads how can I tell my 
button that there is data, its just being filled up?

Any help is appreciated.

Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to