title: How to use reportProgress in HttpClient in Angular?
body: <p>I am downloading file using <code>HTTP</code> <code>POST</code> method. I want to call another method to show download progress to end user until file download complete.
  How to use <code>reportProgress</code> in <code>HttpClient</code> for this. </p>
  
  <pre><code>  downfile(file: any): Observable&lt;any&gt; {
  
      return this.http.post(this.url , app, {
        responseType: "blob", reportProgress: true, headers: new HttpHeaders(
          { 'Content-Type': 'application/json' },
        )
      });
    }
  </code></pre>