I\'m trying to parse for the access_token from Foursquare where the URL is like this:
https://mywebsite.com/4sqredirect/#access_token=1234567890XXXXX
I\'ve t
Use $location.search()
$location.search()
//e.g. url https://www.example.com/#!?name=123 var s = $location.search(); // {name: '123'}
http://docs.angularjs.org/api/ng.$location Search: Returns search part (as object) of current url when called without any parameter.
http://docs.angularjs.org/api/ng.$location
Returns search part (as object) of current url when called without any parameter.