Hello guys i was facing problem while adding custom loader.
Check out this solution.
For ionic 4+
this.myLoading = await this.loadingCtrl.create({
spinner: null,
message: '<ion-img src="assets/gif/loading.gif"></ion-img>',
cssClass: 'custom-loading'
});
await this.myLoading.present();
Add class in theme/variables.scss
ion-loading.custom-loading {
.loading-wrapper {
background: transparent !important;
box-shadow: none !important;
}
}
Happy Coding…
Author Profile
![PREM KUMAR](https://pkworlz.com/wp-content/uploads/2021/12/WhatsApp-Image-2021-06-24-at-8.47.49-PM-min-150x150.jpeg)
- Hey Its..! Tech Lover , Ionic, Angular, Typescript, Dotnet Core, Node, Like Opencv, AI, ML, Robotics, Iot, Love Music, Cooking, Girls, Innovation