This is my router.js
:
Router.map(function() {
this.resource('articles', function() {
this.route('article', { path: ':article_id' });
});
});
When I transition from route
articles/1
toarticles/2
thenarticles.loading
route is displayed.articles.index
toarticles.index
, alsoarticles.loading
route is displayed.
I need to seperate these loading routes, so when I transition from
articles/1
toarticles/2
,articles.article.loading
route should be displayed.articles.index
toarticles.index
,articles.loading
route should be displayed.
Using ember-cli: ember g route articles.loading
generates the articles.loading
route.
I tried ember g route articles.article.loading
, but it doesn't work.
Aucun commentaire:
Enregistrer un commentaire