In the ionic page I have added
@IonicPage({
name: 'login-page',
segment: 'login'
})
When I am trying to open them using url
I’m getting error as
Uncaught (in promise): Error: Type LoginPage is part of the
declarations of 2 modules: AppModule and LoginPageModule! Please
consider moving LoginPage to a higher module that imports AppModule
and LoginPageModule. You can also create a new NgModule that exports
and includes LoginPage then import that NgModule in AppModule and
LoginPageModule. Error: Type LoginPage is part of the declarations of
2 modules: AppModule and LoginPageModule! Please consider moving
LoginPage to a higher module that imports AppModule and
LoginPageModule. You can also create a new NgModule that exports and
includes LoginPage then import that NgModule in AppModule and
LoginPageModule.
& sometimes it’s opening the root page (Homepage/first page) but it does not navigate to loginPage
. I have imported the page in the app.module.ts
How can I solve it?