This is because the @IonicPage()
decorator is for deep linking, this will register the page in ionic's deep link system.
You can remove the decorator if you don't want deep link on that page.
Or you can register that page in your YOURPAGE.module.ts
with this code:
@NgModule({
declarations: [
MyPage
],
imports: [
IonicPageModule.forChild(MyPage)
],
entryComponents: [
MyPage
]
})
You can find more information in the docs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…