Files
doneit-web/src/app/services/alert.service.ts
T
2020-08-28 11:37:28 +01:00

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();
}
}