I have an Ember CLI project, and outside of the application level, I can't seem to get any loading templates to show.
Here's my router:
Router.map(function() {
this.route('users', function () {
this.route('detail', { path: '/:user_id' });
});
});
I have a template located at /app/templates/loading.hbs.
According to the documentation on the Emberjs wesite , this template should show for any of my routes that return a promise, but it doesn't.
I've also tried adding the following templates, to no avail:
- /app/templates/users/loading.hbs
- /app/templates/users/detail-loading.hbs
If I put a template at /app/templates/users-loading.hbs, the template does display during the intermediate transition to the users route, but that is not a good solution to use across my application.
That hacky solution aside, I still can't find a way to get the loading template to show at all for transitions to the users-detail route.
Any thoughts are much appreciated!
Aucun commentaire:
Enregistrer un commentaire