there is currently a header.component.ts public header component that I cannot use in other modules after I register with app.module.ts.
other modules are also registered with app.module.ts.
@NgModule({
declarations : [ HeaderComponent ],
imports : [ otherModule ] //
})
< H2 > other.module.ts < / H2 >
@NgModule({
...........
})
export class otherModule {}
< H2 > other.component.ts < / H2 >
<div class="other-component">
<header-component></header-component>
</div>
error report:
"header-component" is not a known element:
If" header-component" is an Angular component, then verify that it is part of this module.