The imports attribute is available on the @Component decorator but not on the @Directive decorator.
Is there another way to import a module into a standalone directive ?
The imports attribute is available on the @Component decorator but not on the @Directive decorator.
Is there another way to import a module into a standalone directive ?
The current alternative is to provide them at the root of the application with importProvidersFrom (or in the router config).
await bootstrapApplication(RootComponent, {
providers: [
importProvidersFrom(NgModuleOne, NgModuleTwo)
]
});