How to get rid of the display of the parent template in ember js?

Good evening! Tuning of Rue, like this:
this.route('news', function() {
 this.route('news-item', {
 path: '/:news-item_id'
 }, function() {

I noticed a thing that when you go to the page for adding news, I have still displayed and the parent template of "news". How can it be removed?
July 2nd 19 at 14:26
1 answer
July 2nd 19 at 14:28

Get the list of news is not news, and in news.index

Will look like this:

// templates/news.hbs

// templates/news/index.hbs
// Output list news

// templates/news/news-item.hbs
// Output one news
Works. From a template, the default index will provide the content? - yoshiko_Corwin15 commented on July 2nd 19 at 14:31
Yes, it works so

news/ -> news.hbs/index.hbs
news/add -> news.hbs/add.hbs
news/43 -> news.hbs/news-item.hbs - Dallas.Rosenbaum commented on July 2nd 19 at 14:34
: Huge SPS. Where I have not googled. - yoshiko_Corwin15 commented on July 2nd 19 at 14:37

Find more questions by tags Ember.js