I have a parent modules(app.module) & a child module(contacts.module). The child module is lazy loaded. The parent module utilizes a component from the child module but when I navigate to the child route I get the error:
'app-contacts-home' is not a known element:
1. If 'app-contacts-home' is an Angular component, then verify that it is part of this module.
2. If 'app-contacts-home' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to
Obviously that component isn't part of the parent module since it's being lazy loaded. I tried adding app-contacts-home as an entryComponent in contacts.module but had no luck.
How can I use a lazy loaded component in my parent component?