How to use custom loader in ionic 2 project?


#1

I want to use my custom loader in my project

this is my major pain

please help me


#2

Hi, @cooldp007

Refer this tutorial for create and use custom loader in ionic 2 app

Thanks.


#3

@addwebsolution

I want to add a custom image to the loader

Now my problem gets resolved by simply doing this

let loading = this.loadingCtrl.create({
      spinner:'hide',
      content: '<img src="assets/icon/loader.gif">'
      });

      loading.present();

      setTimeout(() => 
      {
        loading.dismiss();
      }, 5000);