title: Angular 4 - printing response from onInit in html
body: <p>I have ngOnInit function in .ts class, and html file associated with it.</p>
  
  <pre><code>    ngOnInit() {
  //some code
  }.then(response =&gt; {
            console.log(response.data.reports[0].reportStatus);
           //some other code
  })
  </code></pre>
  
  <p>generally the method works fine, and the log prints accurate results, but I tried many things and I don't know how to pass the response(and its fields) to html file so that I can print that.
  Thx for help!</p>