Refactored routing:
~ changed URLs for viewCard and viewDeck routes so they work with ng and jqm routing constraints
Refactored helper functionality for better separation and re-usability:
~ split 404 functionality into a separate capOc.ng.redirect404() method
~ refactored capOc.ng.loadDeckOr404() to use new redirect404() and return the deck (instead of setting it in the scope)
~ refactored controllers to use new capOc.ng.loadDeckOr404() signature
+ capOc.ng.loadCardOr404()
View an existing card:
+ viewCardTemplate.html (based on addCardTemplate - not sure at the moment if there's a better way to reuse the common parts)
+ CardViewCtrl to load the requested card and manage persisting changes if you edit it