meteoric / meteor-ionic

Ionic components for Meteor. No Angular!
http://meteoric.github.io
MIT License
1.51k stars 219 forks source link

IonLoading not working properly #357

Closed Loschcode closed 8 years ago

Loschcode commented 8 years ago

Hey guys, great work. I'm using IonLoading like following

# General map loading
IonLoading.show({
  customTemplate: '<h3>Loading…</h3><p>We are retrieving the map details ...</p>',
})

At some point in the App an error might occur so I want to change the customTemplate, the best solution for me was to IonLoading.hide() and then IonLoading.show() with a new template.

# If there's any error showing up before
IonLoading.hide()

# Error shows up
IonLoading.show({
  customTemplate: "<h3>Error</h3><p>We weren't able to retrieve the map details ...</p>",
});

But there's a problem, when the IonLoading.show() occurs there are now 2 IonLoading showing up on the page, looks like a mess, did I do something wrong ?

screenshot 2015-11-20 10 17 02

My guess is it's an issue or a big limit of this feature (I checked the code and as a beginner with Ionic and Meteor I couldn't understand plainly how it works)

Loschcode commented 8 years ago

My bad, the system works, I had a problem and the two IonLoading were processed after the IonLoading.hide() within the lifecycle.