← BYTES
AngularJS·Intermediate·Ref: 5.2.8

What is the basic role of the ngRoute module's $routeProvider?

Have a question about this video? Mention reference 5.2.8 when you contact us.

a.It lets you map URL paths to specific controllers and templates, enabling basic client-side routing between different 'pages' in a single-page app
b.It only configures the application's CSS
c.It replaces the need for ng-app entirely
d.It is used exclusively for making HTTP requests
$routeProvider.when('/path', {controller: ..., templateUrl: ...}) configuration is how a classic AngularJS single-page app defines which view and controller should be shown for a given URL, without a full page reload.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES528#AngularJS