Which method of $location service is used to get the current URL without any parameters?
Options:
Explanation:
The
$location.path() returns the current URL without any parameters.
Tags:
AngularJS
Answer:
Which method of $location service is used to get the current URL without any parameters path().