I’ve created an alert message which I want to close after a set defined time only. Below is my code:
showAlert() {
let alert = this.alertCtrl.create({
subTitle: 'The information you have provided is incomplete or invalid. Please check your entries and check again.'
});
alert.present();
}
showAlert() is the method that will be invoked after an event. Now, I want to set timeout for it but I couldn’t get any solution for it.