How to close modal contain tabs?

generate tabs from cli

<ion-tabs> <ion-tab [root]="tab1Root" tabTitle="tab1"></ion-tab> <ion-tab [root]="tab2Root" tabTitle="tab2"></ion-tab> </ion-tabs>

show modal

on tab1 i have a button to close modal

but it still showing, it not show any error in web console
sorry for my english.

each tab has its own history stack --> if you call dismiss in first tab1 your viewctrl is the tab not the Modal view controller.

1 Like

thank you, you are right

So in this case, how can I close that modal from tab1??