Okay, so, here\'s some context...
I\'ve got a feature module that requires a string value to be passed to its forRoot static method when imported in a
forRoot
a
Try define an injection token inside the module (MyModule in this case). And try using like this :
// main.ts Env.getConfig$().subscribe(config => { platformBrowserDynamic([ { provide: YourToken, useValue: config } // <- here ]).bootstrapModule(AppModule) });
api doc sample implementation