ngx-translate/core "Error: No provider for HttpClient!" : <p>I've downloaded the package ngx-translate/core, and been following the documentation instructions.</p>

<p>I can't get the translation to work.
The steps i made:</p>

<p>1] define everything in the AppModule</p>

<pre><code>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { TranslateModule } from '@ngx-translate/core';
import { HttpClientModule, HttpClient } from '@angular/common/http';
import { TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';

import { routing } from './app.routes';

import { AppComponent } from './app.component';

export function HttpLoaderFactory(http: HttpClient) {
  return new TranslateHttpLoader(http);
}

    @NgModule({
     declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    routing,
    TranslateModule.forRoot({
      loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpClient]
      }
    })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
</code></pre>

<p>2] define everything in AppComponent</p>

<pre><code>import { Component } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
  providers: []
})
export class AppComponent {
  param = { value: 'world' };

  constructor(private router: Router, translate: TranslateService) {
    // this language will be used as a fallback when a translation isn't found in the current language
    translate.setDefaultLang('en');

    // the lang to use, if the lang isn't available, it will use the current loader to get them
    translate.use('en');
  }
}
</code></pre>

<p>3] the html</p>

<pre><code>&lt;div&gt;{{ 'HELLO' | translate:param }}&lt;/div&gt;
</code></pre>

<p>4] And finally created in the assets/i18n/en.json</p>

<pre><code>{
    "HELLO": "Hi There"
}
</code></pre>

<p>I keep getting these errors in the screen shot below
<a href="https://i.stack.imgur.com/1C5Hn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1C5Hn.png" alt="Errors the popup in the browser console"></a></p>

<p>What am i doing wrong ?</p>
