I used Ionic3 to make a mobile hybrid app, and now I want to click the button to pop up a separate page. I use modals to achieve it.
created the page using Ionic3 CLI:ionic g page details, where details is the page I want to pop up.
then in the place where you need to pop up: this.modalCtrl.create ("DetailsPage"). Present ();
) report an error like this:
this.modalCtrl.create(DetailsPage).present();:
now my HomeModule module is a lazily loaded module. The page to be popped up is also a lazy loaded module. I suspect it has something to do with this, so I changed DetailsPage to the traditional way of declaring it in AppModule. The final result is exactly the same as before.
ask the boss who has encountered this situation before to show the way. I have been stuck here for 2 days.
I tried to solve it. I was asked to write a mock.js, on the Internet, but it didn"t change.
Ionic 2 Unit Testing: "Uncaught TypeError: Cannot read property"_ getPortal" of undefined throw":
https://stackoverflow.com/que.