mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
23 lines
476 B
TypeScript
23 lines
476 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { AlertController } from '@ionic/angular';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class AlertService {
|
|
|
|
constructor(public alertController: AlertController) { }
|
|
|
|
async presentAlert(message:string) {
|
|
const alert = await this.alertController.create({
|
|
cssClass: 'my-custom-class',
|
|
header: 'Mensagem do sistema',
|
|
message: message,
|
|
buttons: ['OK']
|
|
});
|
|
|
|
await alert.present();
|
|
}
|
|
|
|
}
|