Martin Andersen
Martin Andersen

Reputation: 2738

Attach Durandal child routes to main rute object

I would like to ask if it's possible to attache child routes to they're parent route?

If all routes are defined on the main route then I can use the route object to build my 2-level menus.

I also just want to set-up all routes in one file.

Upvotes: 0

Views: 36

Answers (1)

Senthil Kumar
Senthil Kumar

Reputation: 373

All the route configuration will be present in the navigation model which you can access using router.navigationModel. Even though you configure your router inside a parent viewmodel, the child routers will still be present inside the navigation model.

Upvotes: 0

Related Questions