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
Post a Comment