create-account.module (page):
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { CreateAccountPage } from './create-account';
import { LanguageChangeComponentModule } from '../../components/language-change/language-change.module';
@NgModule({
declarations: [
CreateAccountPage
],
imports: [
IonicPageModule.forChild(CreateAccountPage),
LanguageChangeComponentModule
],
})
export class CreateAccountPageModule { }
language-change.module (component):
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { LanguageChangeComponent } from './language-change';
@NgModule({
declarations: [LanguageChangeComponent],
imports: [IonicModule],
exports: [LanguageChangeComponent]
})
export class LanguageChangeComponentModule { }
I’m using the second one has child component of the first one (also this first one is imported on another page) but I’m getting this issue:
Uncaught (in promise): Error: Template parse errors:
‘language-change’ is not a known element:
- If ‘language-change’ is an Angular component, then verify that it is part of this module.