Which method of $location service is used to get the search part of the current URL when called without any parameter?

48. Which method of $location service is used to get the search part of the current URL when called without any parameter?

  1. searchPath()
  2. absSearch()
  3. ruleSearch()
  4. search()

Answer: D) search()

Explanation:

The $location.search() returns the search part of the current URL when called without any parameter.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.