styled toggle button and Added alert service

This commit is contained in:
Tiago Kayaya
2020-08-28 11:37:28 +01:00
parent 0480d28caa
commit bad8225130
6 changed files with 73 additions and 13 deletions
+22
View File
@@ -0,0 +1,22 @@
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();
}
}