How to make ionic modals be routed and also act like regular modals?


Is there a way to make the modals be routed and also open as modal? and how to pass it data?

Currently I’ve commented the mymodal-routing.module.ts from the mymodal.module.ts in order to pass it data.

Modal’s aren’t pages and shouldn’t be using routing. check out the docs on how to pass data back and forth with modals. ion-modal: Ionic Mobile App Custom Modal API Component