Search Your Question...!

Showing posts with label Routers. Show all posts
Showing posts with label Routers. Show all posts

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