I am looking for something that lets me execute code when a certain module is initialized. This module is lazy loaded in my application. The APP_INITIALIZER only works for the app initialization process (once at beginning starting at the main module that is bootstrapped).
I cannot use the constructor of the lazy loaded module since my service returns a Promise and I need the response synchronously for working in this lazy loaded module.
resolver. Helpful links: codeburst.io/understanding-resolvers-in-angular-736e9db71267; alligator.io/angular/route-resolvers