Show loading in template


#1

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?


#2

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.


#3

You can use LoadingRoute, I think it shows loading template even when You refresh the whole page. Hope this helps: http://stackoverflow.com/questions/17545251/is-the-loading-template-special-in-ember-js