Which method of $location service is used to get the search part of the current URL when called without any parameter?
Options:
Explanation:
The
$location.search() returns the search part of the current URL when called without any parameter.
Tags:
AngularJS
Answer:
Which method of $location service is used to get the search part of the current URL when called without any parameter search().