How to define nested routes in ember routable engine? I can't navigate to beyond 2 trees. Like, For example
All posts
Post
Comments
Comment
I can access
localhost:4200/posts/:postid/
But when I access
localhost:4200/posts/:postid/comments/:commentid
Its not rendering the content for comments template. But it doesn't show any error either.
In your terminal
In your router.js, replace the contents by the following
This is a solution, But what I prefer is , define an index sub-route in every main routes, for example
ember g route posts/index
and add it into your router.js likeadd an index sub route every time