Home »
MCQs »
AngularJS MCQs
Which method of $location service is used to get the URL without base prefix?
45. Which method of $location service is used to get the URL without base prefix?
- url()
- Url()
- WebUrl()
- absUrl()
Answer: A) url()
Explanation:
The $location.url() returns the URL without base prefix.