Answers for "how to style ionic toastcontroller"

4

ionic toast

constructor(public toastController: ToastController) {}

async presentToast() {
  const toast = await this.toastController.create({
    message: 'Your settings have been saved.',
    duration: 2000
  });
  toast.present();
}
Posted by: Guest on October-25-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language