[v4] Showing a loader during route resolves

I’m utilising Angular route resolves to load data where possible, but if an API request takes more than a second the experience is pretty poor, as the page transition does not occur until the resolved data has been loaded (displaying the previous page until that point).

Is there a generic way to display a loader whilst resolves are running? I’m already using the LoadingController manually in some components (e.g. when a save is occurring).

If you don’t get any better answers, you might consider rethinking the overall strategy and having pages be responsible for handling their own loading progress indication. As a user, I like the UI whereby pages show blurred or dummy data in spaces where the real thing will go once loaded, and that’s easier to do from within the target page than in any generic fashion.