I have just discovered the resolver class, and find it very useful.
There are different objects I need to preload, depending on specific url.
However, in my layout (app.component.ts + app.component.html) I would like to use resolver in order to preload logged user data from api.
I know this component is not accessed via router, so at the moment I use ngOnInit hook.
Is there any way to use resolver to preload data before the app component is rendered?