MCQs > IT & Programming > Angular JS > in AnguiarJS. which of the following steps is mandatory to enable routing in your application? Also. you have to check whether these syntaxes are valid or not. 1. include the AngularJS Route module: 2. Add the ngRoute as a dependency in the application module: var app = angular.module(myApp, [ngRoute]);

Angular JS MCQs

in AnguiarJS. which of the following steps is mandatory to enable routing in your application? Also. you have to check whether these syntaxes are valid or not.

1. include the AngularJS Route module:

2. Add the ngRoute as a dependency in the application module:

var app = angular.module(”myApp”, [“ngRoute"]);


Answer

Correct Answer:

Both 1 and 2

The syntax of only the second statement is valid.


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it