title: How can access the angular5 httpclient answer?
body: <p>export class AppComponent implements OnInit{</p>
  
  <p>userObservable: any = {};</p>
  
  <p>constructor(private httpClient: HttpClient) { }</p>
  
  <p>ngOnInit(): void {</p>
  
  <pre><code>this.httpClient.get&lt;UserResponse&gt;("http://localhost:9000/home")
      .subscribe(data  =&gt; {console.log(data.status);
                           console.log(data.password);
                           this.userObservable = data;
                           console.log('Result ==&gt; ',this.userObservable);
                          },
                 error =&gt; {}
  );
  console.log(this.userObservable);
  </code></pre>
  
  <p>}</p>
  
  <p>when the last console statement is executed, the displayed value is null. I need to manipulate the httpclient answer in other components of my application. how can i do that?</p>