I am trying to view the actual route on the URL, but I'm having trouble figuring out exactly what needs to be changed.
I've been referring to the documentation at: https://ionicframework.com/docs/api/navigation/IonicPage/
However, I keep encountering this error:
...home.ts has a @IonicPage decorator, but it does not have a corresponding "NgModule" at... The code snippet at the top of my page is as follows:
@IonicPage({
name: 'sums-home',
segment: 'sums-home'
})
I created the home.module.ts file with the following code:
import { NgModule } from '@angular/core';
import { SumsHomePage} from './home'; import { IonicPageModule } from 'ionic-angular';
import { NgModule } from '@angular/core';
import { SumsHomePage} from './home';
import { IonicPageModule } from 'ionic-angular';
@NgModule({
declarations: [
SumsHomePage
],
imports: [
IonicPageModule.forChild(SumsHomePage),
],
exports: [
SumsHomePage
]
})
export class SumsHomePageModule { }
and I navigate to this page using:
this.navCtrl.push('sums-home');
but I feel like there might be something missing.
Has anyone resolved this issue before?