Quantcast
Viewing all articles
Browse latest Browse all 4828

Nested Route do not render in parent template

@grimaldo wrote:

Hi, I'm new into the ember, hope yo can help me:

version: 2.10

I'm creating a nested routes but the child routes doesn't render into the parent {{outlet}} let me show my code

Router.map(function() {
 this.authenticatedRoute('dashboard', function() {
    this.route('project', function(){
      this.route(':id');
    });
  });
})

My template structure looks like

dashboard
|_index.hbs
|__project
|___index.hbs
|___:project-id.hbs

When I go to /dashboard/

Image may be NSFW.
Clik here to view.

but whenever I check /dashboard/project Ember's routering use the {{outlet}} in application.hbs instead of the {{outlet}} inside the dashboard.hbs and the navigation do not display

Can you help me please?

Posts: 9

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles