import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { FormsModule } from '@angular/forms' ; import { RouterModule , Routes } from '@angular/router' ; import { IonicModule } from '@ionic/angular' ; import { SettingsPage } from './settings.page' ; import { SharedModule } from '../shared/shared.module' ; const routes = [ { path : '' , component : SettingsPage } ] ; @ NgModule ( { imports : [ CommonModule , FormsModule , IonicModule , RouterModule . forChild ( routes ) , SharedModule ] , declarations : [ ] , providers : [ ] } ) export class SettingsPageModule { }