swimlane / angular1-systemjs-seed

AngularJS 1.x + SystemJS Seed
MIT License
211 stars 40 forks source link

multiple declaration of routes #26

Closed lookfirst closed 9 years ago

lookfirst commented 9 years ago

Right now, there is a routes.json file and in that file, we declare the top level routes. However, these same routes are also declared in say login.js module configuration. It seems a bit DRY. Is there a way to clean this up?

amcdnl commented 9 years ago

We have to declare the route again with the full details of the route. This is what actually registers it, the top level json routes are just for knowing where to get it.

lookfirst commented 9 years ago

Understood. Was hoping that there was a better way.