Ionic 3 can't use ion-* components inside my custom components Ionic 3 can't use ion-* components inside my custom components angular angular

Ionic 3 can't use ion-* components inside my custom components


Alright, so I figured out the solution:

All i needed was to import IonicModule in components.module, without forRoot(..).

Also note that Angular's CommonModule is also necessary to make Angular's directives work, so you probably need to import it too.


Based on Eliran response, here you are an example in case somebody need something visual, in components.module.ts:

@NgModule({ imports: [  CommonModule, <<<< add the angular common module  IonicModule <<<< add the ionic module ], ...})