Answer the question
In order to leave comments, you need to log in
How to get rid of showing parent template in ember js?
Good evening! By setting up the root, for example this:
this.route('news', function() {
this.route('add');
this.route('news-item', {
path: '/:news-item_id'
}, function() {
this.route('edit');
});
});
Answer the question
In order to leave comments, you need to log in
Привет.
Выводи список новостей не в news, а в news.index
Выглядеть будет примерно так:
// templates/news.hbs
{{outlet}}
// templates/news/index.hbs
// Вывод списка news
// templates/news/news-item.hbs
// Вывод одной новости
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question