The Ionic 3.5 CLI generates a custom component and puts the following in app.module.ts
@NgModule( declarations: [ CustomComponent ], )
Unfortunately, I got an error that, ‘custom-component’ is not a known element.
For the moment, I removed CustomComponent from declarations in app.module.ts and added the following to imports in each module that needs the component. This seems OK.
For example, in page.module.ts
@NgModule( imports: [ CustomComponentModule ] )
How to import custom components generated by Ionic 3.5 CLI?
I would appreciate your advice and suggestions.