I have Route action that gets data from Component and saves it to the API server.
Sometimes network is slow and I want to show message to user that app have not hangs, something is being done. Now since am basically in the same route, I guess there is no transition and so the conventional “loading” wisdom does not help here.
What can I do to show loading template when the waiting for model below to resolve or reject?
@broerse thanks for the code. Can you explain a bit on how I activate it in my model save? Is it possible to reuse my loading.hbs template *temporary transition to it) using your code?
You can use a spinner and a isShowingSpinner variable to show if it’s visible in the template or not. Initially set it to true before saving then set it to false after save success.