I have an angular site that contains a component inside another component. I\'m using routing and lazy loading the outer component (ComponentA). The inner component (Compone
I went back to the start and realised what I missed:
In feature-b.module.ts
I should have exported the component:
exports: [
FeatureBComponent
]
It was also necessary for me to import FeatureBModule
rather than FeatureBComponent
.
import { FeatureBComponent } from '../feature-b/feature-b.component';
import { FeatureBModule } from '../feature-b/feature-b.module';