mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
multiples improvements
This commit is contained in:
@@ -5,18 +5,17 @@ import { LoadingController } from '@ionic/angular';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LoadingService {
|
||||
loading:any;
|
||||
|
||||
constructor(public loadingController: LoadingController) { }
|
||||
|
||||
async simpleLoading(message:string) {
|
||||
const loading = await this.loadingController.create({
|
||||
async simpleLoading() {
|
||||
this.loading = await this.loadingController.create({
|
||||
cssClass: 'my-custom-class',
|
||||
message:message,
|
||||
message:'A carregar!...',
|
||||
duration: 2000
|
||||
});
|
||||
await loading.present();
|
||||
|
||||
const { role, data } = await loading.onDidDismiss();
|
||||
await this.loading.present();
|
||||
}
|
||||
|
||||
async customizedLoading() {
|
||||
|
||||
Reference in New Issue
Block a user