$routeParams reads :id segments from the active route for detail views.
Include 'ngRoute' in your module dependency array—the playground CDN loads angular-route.min.js.
Important interview questions and answers
- Q: Why does this matter?
A: $routeParams reads :id segments from the active route for detail views.
Self-check
- Summarize Route params in one sentence.
- What would you try next in the playground?