Home »
MCQs »
AngularJS MCQs
Which is not a valid method of $location service?
49. Which is not a valid method of $location service?
- hostname()
- host()
- path()
- hash()
Answer: A) hostname()
Explanation:
There is no function named hostname() in $location service.