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).