I am developing my first app in aurelia. Consider I have this main navigation in my app:
app.js
|->home
|->user
|->students
And for example in my students page I want another navigation:
students.js
|->list
|-> get:id
|-> add
|-> delete
|-> edit
now I think I have two ways. One to call configureRoutes also in students.js and use that in its child routes or to define all child routes in the app.js grouped using viewports.
Which of these two are better. Is there any better solution?
configureRoutesin each of the sub components. it gives you the most flexible result. consider what happens when you decide to move a sub components and all of his routes to a different part of the application. also you have the best separation of concerns in that way. - avrahamcool