I am new to angular JS. I have one controller (.js file) in which I wrote a function to make a http get call to back-end. Like below:
$http({
url: "services/rest/1.0/project/employeeDetails",
method: 'GET',
headers: config,
transformResponse: function (data) {
var x2js = new X2JS();
var json = x2js.xml_str2json(data);
return json;
}
}).success(function (response) {
alert("success for account details with response:"+response);
if (response && response.siteDetailsList.errorCode == 0)
$scope.accountdetails = response;
});
Now problem is that I need to add two query parameter to my url which I mentioned in above code snippet , so that final URL will look like this:
services/rest/1.0/project/employeeDetails ? param1=world & param2=hello
This param1 and param2 value I am getting from my HTML file's input text box. Any idea how we append dynamic query parameter to this URL?