title: How to instantiate an Angular HttpClient?
body: <p>How do you instantiate an HttpClient in Angular 5? I need to instantiate it inside the constructor, but not in this line <code>constructor(private _Http: HttpClient)</code>.</p>
  
  <p>Maybe something like this hypothetical example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { HttpClient, HttpHandler } from '@angular/common/http';
  private _Http: HttpClient;
  private _httpHandler: HttpHandler;
  @Injectable()
  export class DataService {
      constructor() {
          this._Http = new HttpClient(_httpHandler);
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thank you</p>