typescript - Angular 2 - make imported modules accessible in child modules -
is possible make modules, imported in root module accessible in child modules?
for example, have root module imported formsmodule
& reactiveformsmodule
& custom routingmodule
:
// ... @ngmodule({ // ... imports: [ browsermodule, formsmodule, reactiveformsmodule, routingmodule, ], // ... })
but problem in child routingmodule
components reactiveformsmodule
declarations not accessible, need import there (in routingmodule
imports).
is way make imported modules accessible each other top bottom of import statement?
just imported export them module available child modules
exports: [ browsermodule, formsmodule, reactiveformsmodule, routingmodule, ],
Comments
Post a Comment