I think a solution would be to create an extra component. Let’s say you create componentC for the content, then you import and use the component in both pageA and modalB. In these pages/modals you’ve got then an ion-header with your navigation and ion-content tags containing your component

Freelancer by day | Creator of DeckDeckGo by night | Organizer of the Ionic and IndieHackers Zürich Meetup

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store