ionic modal card code example
Example 1: ion modal dismiss
export class ModalPage {
...
dismiss() {
// using the injected ModalController this page
// can "dismiss" itself and optionally pass back data
this.modalCtrl.dismiss({
'dismissed': true
});
}
}
Example 2: ion modal toolbar
<ion-toolbar>
<ion-title>Pesquisar médicos</ion-title>
<ion-buttons slot="start">
<ion-button onclick="add_doc(null)">Cancelar</ion-button>
</ion-buttons>
</ion-toolbar>