angular-app/angular-app — pull request #28 by pkozlowski-opensource (2012-09-25 20:38:46+00:00)
Title: Product backlog and route definition DRY

@petebacondarwin I've added a new commit (bee7ae9) to the productBacklog branch where I'm trying to DRY routing definition (still based on the AngularJS routes).

The overall LOC count goes down and consistency was improved. Also, defining new routes is faster / straightforward. Still, I'm not entirely happy with this refactoring due to the following:
* the implementation itself is a bit "magical", would be hard (?) to cover in the book
* I'm not sure if it is generic enough to cater for the cases we could have in the future.

Still I'm a bit tempted to keep it since it makes dev faster / more consistent.

Anyway, opening a PR to have your opinion.