I\'m using angular in an application which is, basically, a table with search results.
Access to this table can be achieved via an url like http://myapp/?client=clien
The API for $location.search is pretty confusing. Calling
$location.search('client');
will set the search object to {client: true} and return $location. Furthermore, you have a typo client instead of 'client', so it's setting search to an empty object. So you probably want:
url += '&client=' + $location.search()['client'];