close a modal while openning a new modal in angular code example
Example 1: angular modal dismisss
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: my angular modal popup is not closing automatically
<button type="button" class="close" data-dismiss="modal" #closeAddExpenseModal>×</button>