Home »
MCQs »
AngularJS MCQs
Which method of $location service is used to get the current URL without any parameters?
47. Which method of $location service is used to get the current URL without any parameters?
- url()
- absUrl()
- path()
- absPath()
Answer: C) path()
Explanation:
The $location.path() returns the current URL without any parameters.