Home »
MCQs »
AngularJS MCQs
Which method of $location service is used to get the search part of the current URL when called without any parameter?
48. Which method of $location service is used to get the search part of the current URL when called without any parameter?
- searchPath()
- absSearch()
- ruleSearch()
- search()
Answer: D) search()
Explanation:
The $location.search() returns the search part of the current URL when called without any parameter.