how to close modal popup in angular 8 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>