Ionic Custom loading not working on device


#1

Hi,

I’m having a problem with custom loading. It’s work on ionic serve but in the device it’s blank.

Screenshot below is from ionic serve

Here’s my .ts code:

  constructor(public navCtrl: NavController, private LoadingCtrl: LoadingController) {
    this.presentLoader();
  }

  presentLoader() {
    let loading = this.LoadingCtrl.create({
      spinner: 'hide',
      content: '<img class="custom-spinner" src="../../assets/imgs/sample/lg.recycle-spinner.gif"/>',
      duration: 5000
    });
    loading.present();
  }