Hey, I used to do something along the lines of
{{#if controller.isLoaded}}
done
{{else}}
Loading..
{{end}}
in a resource but now it seems to block until the model hook promise object has been resolved. What is the proper way of checking if a model is fully loaded?
Just a bit more info, this works if I got from route a, to route b and route b takes a long time to load. If I reload the page from route b, the whole template is blocked till the model is resolved.
You can use LoadingRoute, I think it shows loading template even when You refresh the whole page.
Hope this helps: handlebars.js - Is the "loading" template special in Ember.js? - Stack Overflow
1 Like