title: How to map a response(key value pair) to post request URL in angular?
body: <p>In angular I have sent a http get request whose response is as follows:</p>
  <p>{
  &quot;name1&quot;:&quot;id1&quot;,
  &quot;name2&quot;:&quot;id2&quot;,
  &quot;name3&quot;:&quot;id3&quot;
  }</p>
  <p>Now I have mapped this response in the select field of my reactive form, this drop down shows the list of names I am getting from the above response. ( For eg. name1, name2, name3)</p>
  <p>Now the requirement is, I have to submit this form to a URL where the id should be dynamically selected according to the name I select from the select field in my form.</p>
  <p>(For eg if I select <strong>name1</strong> &amp; hit submit button then the post request should be sent to &quot;http://url/<strong>id1</strong>&quot;)</p>
  <p>How can I map the response of the get request to my url for the post request to be sent ? Please help, thanks in advance !!!</p>