Build query string from parameters object
There is a nice solution as of 1.4+. You can build a query string from a parameters object with $httpParamSerializer : var qs = $httpParamSerializer(params); See docs here Default $http params serializer that converts objects to strings according to the following rules: {‘foo’: ‘bar’} results in foo=bar {‘foo’: Date.now()} results in foo=2015-04-01T09%3A50%3A49.262Z (toISOString() and encoded … Read more