@ngx-translate/http-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -34,4 +34,4 @@ { | ||
"@ngx-translate/core": ">=6.0.0", | ||
"@angular/core": ">=4.3.1", | ||
"@angular/http": ">=4.3.1" | ||
"@angular/core": ">=4.3.0", | ||
"@angular/common": ">=4.3.0" | ||
}, | ||
@@ -44,3 +44,2 @@ "devDependencies": { | ||
"@angular/core": "4.3.1", | ||
"@angular/http": "4.3.1", | ||
"@ngx-translate/core": "7.0.0", | ||
@@ -87,3 +86,3 @@ "@angular/platform-browser": "4.3.1", | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
@@ -28,3 +28,3 @@ # @ngx-translate/http-loader [![Build Status](https://travis-ci.org/ngx-translate/http-loader.svg?branch=master)](https://travis-ci.org/ngx-translate/http-loader) [![npm version](https://img.shields.io/npm/v/@ngx-translate/http-loader.svg)](https://www.npmjs.com/package/@ngx-translate/http-loader) | ||
import {BrowserModule} from '@angular/platform-browser'; | ||
import {HttpModule, Http} from '@angular/http'; | ||
import {HttpClientModule, HttpClient} from '@angular/common/http'; | ||
import {TranslateModule, TranslateLoader} from '@ngx-translate/core'; | ||
@@ -35,3 +35,3 @@ import {TranslateHttpLoader} from '@ngx-translate/http-loader'; | ||
// AoT requires an exported function for factories | ||
export function HttpLoaderFactory(http: Http) { | ||
export function HttpLoaderFactory(http: HttpClient) { | ||
return new TranslateHttpLoader(http); | ||
@@ -43,3 +43,3 @@ } | ||
BrowserModule, | ||
HttpModule, | ||
HttpClientModule, | ||
TranslateModule.forRoot({ | ||
@@ -49,3 +49,3 @@ loader: { | ||
useFactory: HttpLoaderFactory, | ||
deps: [Http] | ||
deps: [HttpClient] | ||
} | ||
@@ -52,0 +52,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40
175698