midAngularJS
What is ngRoute in AngularJS?
Updated May 15, 2026
Short answer
ngRoute enables routing in SPA.
Deep explanation
It maps URLs to views and controllers.
Real-world example
Navigation between pages in SPA.
Common mistakes
- Not configuring fallback routes.
Follow-up questions
- What is $routeParams?