When using Resolver
s in Angular (7), is it possible to have the URL change before Resolver
s are executed? I am looking to implement a global loading bar like the one on YouTube, where the data of the next page is loaded before the content of the current page is replaced with the new page content - which is exactly how a Resolver
behaves.
On YouTube however, the URL changes at the start of navigation, and thus before the content is loaded, while in Angular, when using a Resolver
, the URL is not changed until both Resolver
s and any Guard
s have finished executing (successfully).
Is there a way to achieve behaviour similar to YouTube, where the URL changes immediately, but the content is not changed before it has finished loading?