Let\'s say I have a RESTful endpoint that accepts a range of facets to query data. Here\'s a few examples:
example.com/search?type=Doctor&location=Boston
In fact, instead of using $location to call your data-service endpoint, a normal way to do that is
and in getDataService() do a
$http.get( serviceUrl, config ).success( ...
with your serviceUrl being
example.com/search/Facility/Wayne,NJ/3/f
after parsing (using sprintf)