Skip to content

Instantly share code, notes, and snippets.

@JaimeSarrion
Created August 16, 2017 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaimeSarrion/963142eb2142c3789b7d2d26650cdceb to your computer and use it in GitHub Desktop.
Save JaimeSarrion/963142eb2142c3789b7d2d26650cdceb to your computer and use it in GitHub Desktop.
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