Is it possible to make modules, imported in a root module accessible in child modules?
For example, now I have root module with imported FormsModule & ReactiveFormsModule & custom RoutingModule:
// ...
@NgModule({
// ...
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
RoutingModule,
],
// ...
})
But the problem is that in child RoutingModule components ReactiveFormsModule declarations are not accessible, so that I also need to import it there (in RoutingModule imports).
Is it a way to make all imported modules accessible for each other from top to bottom of import statement?
Just like you imported export them from this module to be available for the child modules
exports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
RoutingModule,
],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With