How to fetch the data from URL and use it. I Have 2 pages where I am redirecting the data from one page to other.
Here is the code for first page:
<a href="product.html?catid={{child.name}}"> {{child.name}} </a>
on product.html
how do I fetch the URL and the catid
data.
If I use $location.path();
it is giving me an error
$location not defined
How do I fetch the information from URL?