Search Your Question...!

Showing posts with label Angularjs. Show all posts
Showing posts with label Angularjs. Show all posts

AngularJS Packaging and Testing MCQ's

1.  Which one of these is a Bower Concept?

   View Answer   

   Package



2. The following is the syntax of installing a Component in Bower.

   View Answer   

   Bower install componenet name



3. In Package.json, to include the latest version we can use.

   View Answer   

   Symbol



4. Grunt runs tasks using Temporary files which are disk I/O operations.

   View Answer   

   TRUE



Routers and Custom Directives MCQ's

 1) what is the purpose of the $location service?

It enables changing the path of the application in order to perform navigation  

2) With _, views and routes are tied to the application url. ngRoute

3)Which is the correct syntax format for constructing a route and binding a route parameter?

<a ng-href=”#/detail/{{food.id}}”>Click for more.......</a> 

4) Which function best describes routing?

Loads templates into the ng-view element

5) The…………… service is not able to function properly if the current URL is outside the URL given as the base href. $location