Reputation: 963
My application has a number of modules users may reference before they decide to sign-up. I want to keep them separate from others.
These "PreRegistration" modules would be then lazy loaded. Directory PreRegistration has a splash-page module (and eventually others) that are all referenced by the pre-reg.module.ts:
pre-reg module is the collection of all PreRegistration modules (only 1 in this case):
In this simple case, I want to show it in the app.component.html so I import in AppModule:
But in app.component.html, the splash-page selector is not recognized. SplashPageComponent has no functions, just a dummy html.
but the selector is correct. Here is app.component.html complaining about the missing reference?
My "cute" organization seems to be a waste of time. Any ideas why it isn't being referenced? THANKS IN ADVANCE. :-) Yogi
Upvotes: 0
Views: 408
Reputation: 15423
There are a couple of things you are missing here:
splash-page.module.ts
@NgModule({
declarations: [SpashScreenComponent, ....],
exports: [SpashScreenComponent]
})
Upvotes: 1
Reputation: 635
I assume that you forgot to export SpashPageComponent in SplashPageModule.
splash-page.module.ts ...
@NgModule({
declarations: [SpashScreenComponent, ....],
exports: [SpashScreenComponent]
})
Upvotes: 1