Starting from: http://docs.angularjs.org/tutorial/step_07When a faked phoneId is passed (eg:
http://localhost:8000/app/index.html#/phones/motorola-made-up-phone ), and no motorola-made-up-phone.json is found, angular-phonecat simply displays a blank phone detail page with no error message.
How should the example app be improved to, say, re-route the user back to the index page (or even a 404 page) in the event that data for a given phoneId is not found?
Should phoneId's be validated by the router somehow? Or perhaps would the PhoneDetailCtrl re-route back to the index when it can't find motorola-made-up-phone.json ? Or should the view use a conditional to replace the entire Phone Detail view with an error message?
Thanks :)
-James