title: An elegant way to reduce code when setting up uri queryParams in Angular?
body: <p>I have a method that sets up an endpoint in an angular service and as there are 3 or four elements to the query param, the line is getting long. </p>
  
  <p>Is there a more elegant way to set this up? </p>
  
  <pre><code>private endpoint = (
      var1: Type1,
      var2: Type2,
      var3: Type3
    ) =&gt; {
      let uri = `path?query1=${var1}&amp;query2=${var2}&amp;draft=true&amp;query3=${var3}`;
      return uri;
    };
  </code></pre>
  
  <p>I think there should be a better way to write this, where if I require extending this further, it could be quicker? I can't find anything around which could help me online.</p>
  
  <p>Anyone have any ideas? </p>