- I've created a ionic 3 project with a sidebar.
- I've defined couple of components in
components/component.module.tsfor lazy loading - I have a
profile-pic componentand I need to use it in sidebar whichapp.component.html - so to use this, I included
component.module.tsinapp.component.tsbut got the error.
I've googled myself and found out that we can't include component.module.ts which is lazy loading in app.component.ts.
Not sure this is the correct answer but I need to use a component in app.component.html.
Any suggestions?
FYI, I wanna use custom components in Sidebar(which is app.component.html), not in Pages.
In pages, it works well if I import component.module.
Thanks.