Ionic4 how to navigate inside modal

#1

I’m opening new modal window, and I want to start new navigation within this window. But, when I’m doing

router.navigate(…) it pushes page, that behind modal window (from which I opened this modal)

#2

You can’t as far as I know, there is no navigation in a modal. Open your app on a big screen you will understand why, “modals” are “popups”.

What I often do for such case, I add a slider full height in the modal and I treat the “slides” as kind of “pages”, block the swipe and simulate the navigation by calling next and previous slides through buttons

1 Like