-
-
Save JaimeSarrion/963142eb2142c3789b7d2d26650cdceb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor( | |
public navCtrl: NavController, | |
public navParams: NavParams, | |
public comerciosProvider : ComerciosProvider, | |
public loadingCtrl: LoadingController, | |
public toastCtrl: ToastController) { } | |
ionViewDidLoad() { | |
this.presentLoading(); | |
} | |
presentLoading() { | |
let loader = this.loadingCtrl.create({ | |
content: "Cargando...", | |
}); | |
loader.present(); | |
setTimeout(() => { | |
this.getCategorias(); | |
this.getOfertas(); | |
this.getNoticias(); | |
loader.dismiss(); | |
}, 3000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment