Which method of $location service is used to get the current URL without any parameters?

47. Which method of $location service is used to get the current URL without any parameters?

  1. url()
  2. absUrl()
  3. path()
  4. absPath()

Answer: C) path()

Explanation:

The $location.path() returns the current URL without any parameters.

Comments and Discussions!

Load comments ↻






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