I have an Angular Application. In my app.module.ts declaration I would do something like this:
App.module (my Root Module):
let imports = [
//....
];
if (!environment.production) {
imports.push(DevToolsModule);
}
@NgModule({
imports: imports,
...
})
DevToolsModule (my Feature Module):
My separate feature module DevToolsModule looks like the following:
@NgModule({
declarations: [DeveloperToolsComponent],
imports: [
CommonModule
],
entryComponents: [DeveloperToolsComponent]
})
export class DevToolsModule {}
What I would do now, is the following:
When my DevToolsModule gets imported, I would like to show a component on my screen with some developer information. It should be automatically added, I don't want to define it anywhere in my app.html template.
Did anyone achieve something like that?
Thanks so much, Sebastian