is it possible to have the following strucure?
app.component.js
@Component({
template: '<nav-context></nav-context>'
class AppComponent
app.module.js
@NgModule({
imports: [CoreModule]
boostrap: [AppComponent]
core.module.js
@NgModule({
imports: [NavModule]
class CoreModule
nav.module.js
@NgModule({
declarations: [NavContextComponent]
exports: [NavContextComponent]
class NavModule
nav-context.component.js
@Component({
selector: 'nav-context'
class NavContextComponent
So far I get 'nav-context' is not a known element
I think you need to also export the module if you want it to be provided to importers
@NgModule({
imports: [NavModule]
exports: [NavModule]
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