var httpOptions = {
url: "http://doman/files",
method: "GET",
params : {
type: pdf,
page: '112',
country: "USA",
lang: "en"
}
};
$http(httpOptions).success(function(data){ });
I am using angularjs. I have an http options to send server. But I want to get the parsed url after succes like this, because I have a lat of params and not want do manually:
http://mydoman/files?type=pdf&page=112&country=USA&lang=en
type: pdf, totype: 'pdf',