title: I want the data i receive from API to be saved and passed to an URL in Angular?
body: <p>I want the data i receive from API to be saved and passed to an URL in Angular?</p>
  
  <p>SERVICE.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>readonly rootUrl = 'http://localhost:49940/';
  
  constructor(private http: HttpClient) { }
  
  getUserName(): Observable&lt;any&gt; {
    return  this.http.get&lt;any&gt;(this.rootUrl+'api/Account/GetUserClaims');
  }
  
  get(userName: string): Observable&lt;any&gt; {
    let URL = `https://...?codSog=${userName}`;
    return this.http.get&lt;any&gt;(URL);
  }
  </code></pre>