I can hardly believe it worked. Thank you very much @lucasbasquerotto. I spent hours working with this seemingly simple problem.
Exactly what you said.
I created a new module only for the “accordion-list” component with the following content:
import { NgModule} from '@angular/core';
import { AccordionListComponent } from './accordion-list';
@NgModule({
declarations: [
AccordionListComponent
],
exports: [
AccordionListComponent
]
})
export class AccordionListComponentModule {
}
And I imported it where I’d like to use it (ClientPageModule). Staying like this:
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ClientePage } from './cliente';
import { AccordionListComponentModule } from '../../components/accordion-list/accordion-list.component.module';
@NgModule({
declarations: [
ClientePage,
],
imports: [
IonicPageModule.forChild(ClientePage),
AccordionListComponentModule
],
})
export class ClientePageModule {}
I am adding images to serve others who are in the same situation as mine.