tab3.page.ts 469 B

123456789101112131415161718192021
  1. import { Component } from '@angular/core';
  2. import { ToastController } from '@ionic/angular';
  3. @Component({
  4. selector: 'app-tab3',
  5. templateUrl: 'tab3.page.html',
  6. styleUrls: ['tab3.page.scss']
  7. })
  8. export class Tab3Page {
  9. constructor(private toastController: ToastController) {}
  10. async onItemClick(item: string) {
  11. const toast = await this.toastController.create({
  12. message: `Clicked on ${item}`,
  13. duration: 2000,
  14. });
  15. toast.present();
  16. }
  17. }