Home trying to make a multi language app, issue with httpclient
Reply: 0

trying to make a multi language app, issue with httpclient

user657
1#
user657 Published in June 19, 2018, 2:39 pm

Hi I tried this tutorial and when I add this

import {HttpClientModule, HttpClient } from '@angular/common/http';
import {TranslateModule, TranslateLoader} from '@ngx-translate/core';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';

export function HttpLoaderFactory(http: HttpClient ) {
  return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}

I am getting this type of error

Argument of type 'HttpClient' is not assignable to parameter of type 'Http'. Property '_backend' is missing in type 'HttpClient'. 

What should I do to fix this error

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.312729 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO