I want to call one component from another module. The component calls other component which have its own module which also calling component from TemplateComponent, the one that will import the component.
Component To Be Called
templates: <app-sub [schema]="schema"></app-sub>
First Module
@NgModule({
declarations: [
ComponentToBeCalled,
],
exports: [
ComponentToBeCalled
]
})
export class FirstModule { }
Template Component
@NgModule({
imports: [
FirstModule
],
providers: [],
exports:[ FirstModule ]
})
export class TemplateComponent{}
But it doesn't work. Any workaround?