Here route definitions are placed inside each controller (https://github.com/angular-app/angular-app/blob/master/client/src/app/dashboard/dashboard.js) instead of single file.
Problem with this approach is if you have any dynamic route ( for ex /:catchAll ) in any controller and that controller is coming very first (or before other controllers) then it will catch all the routes and there is no way to order routes now.
So any other approach ?
Here route definitions are placed inside each controller (https://github.com/angular-app/angular-app/blob/master/client/src/app/dashboard/dashboard.js) instead of single file.
Problem with this approach is if you have any dynamic route ( for ex /:catchAll ) in any controller and that controller is coming very first (or before other controllers) then it will catch all the routes and there is no way to order routes now.
So any other approach ?