MCQs > IT & Programming > Angular JS > it is given that pagination is implemented to browse the menu of a shopping website implemented in AngularJS. For the click event on the next-page button, how would you implement the change of URL? [Take the URL as www.xxx.com#?page=2]

Angular JS MCQs

it is given that pagination is implemented to browse the menu of a shopping website implemented in AngularJS. For the click

event on the next-page button, how would you implement the change of URL? [Take the URL as www.xxx.com#?page=2]


Answer

Correct Answer:

var current = $location.search[){'page'];

$location.search(‘page'. current + 1): 


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