What is the main purpose of $routeProvider in AngularJS?
$routeProvider is one of the important services which set the configuration of URLs. It further maps them with the corresponding HTML pages or ng-templates and attaches a controller with the same. In AngularJS, the $routeProvider is a part of the ngRoute module, and its main purpose is to configure the routes for a Single Page … Read more