What is the role of the $routeProvider in AngularJS?

Instruction: Explain how the $routeProvider is used to configure routes in an AngularJS application.

Context: This question tests the candidate's understanding of AngularJS's routing mechanism, a key concept for creating single-page applications (SPAs).

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

The $routeProvider in AngularJS is essentially a provider used for configuring routes within an application...

Related Questions