In angular I'm using the http service (get). I need to get the CURRENT url parameters to form the url of the http get. What is the best way to do this?
For example: the page I'm currently on is www.blah.com/blah1/blah2
I need to make a http get request in Angular with a url using blah1 and blah2 parameters. For example:
$http.get('www.lala.com/+blah1+blah2)
One solution I was thinking of: Use Node to pass in the url parameters to jade. Then in jade, initialize using ng-init with the passed in url parameters. Then I could access those ng-init variables (parameters) inside Angular?
Edit: I am an absolute beginner