dimanche 18 septembre 2016

Ember, loading state, loading template delay, timeout

I'm using Emberjs "loading route" system, using the loading.hbs template and everythings works very well.

Now I need to "delay" the loading view for, let's say, about one second before it appears.

How to do that?

Example:

My ajax request is taking time to load, ok, I wait one second and only after 1 second I show the loading template (and then, at resolve of promise the route I called).

How can I set that delay in an elegant way?




Aucun commentaire:

Enregistrer un commentaire