mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
20 lines
405 B
TypeScript
20 lines
405 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ToastController } from '@ionic/angular';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ToastService {
|
|
|
|
constructor(public toastController: ToastController) { }
|
|
|
|
async presentToast(infoMessage: string) {
|
|
const toast = await this.toastController.create({
|
|
message: infoMessage,
|
|
duration: 2000
|
|
});
|
|
toast.present();
|
|
}
|
|
|
|
}
|