ember.js - How to differentiate between empty data and pending data -


in 1 of templates doing following:

{{#if controllers.nodesindex}}     {{outlet}} {{else}}     <div style="text-align:center;"><br/><br/><img src="images/circular_loader.gif" /><br/><br/>loading data...</div> {{/if}} 

i showing spinner while data loading. problem not able differentiate between case when server has not yet replied, , case when server has replied empty set.

how can verify in controller (or somewhere else) if data has arrived?


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -