title: How to append dynamic query parameter in HTTP get URL in Angular JS?
body: <p>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:</p>
  
  <pre><code>             $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 &amp;&amp; response.siteDetailsList.errorCode == 0)
                       $scope.accountdetails = response;
               });
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>services/rest/1.0/project/employeeDetails ? param1=world &amp; param2=hello
  </code></pre>
  
  <p>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?     </p>