Skip to content

Commit

Permalink
fix issue with http module and lazy loading
Browse files Browse the repository at this point in the history
fix issue with http module and lazy loading
  • Loading branch information
DenysVuika committed Feb 6, 2019
2 parents 292cb24 + 5ab5074 commit 9523dd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions projects/translate/src/lib/translate.module.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { TranslateService, TRANSLATE_SETTINGS } from './translate.service';
import { TranslatePipe } from './translate.pipe';
import { TitleService } from './title.service';
import { TranslateSettings } from './translate.settings';

@NgModule({
imports: [CommonModule, HttpClientModule],
imports: [CommonModule],
declarations: [TranslatePipe],
exports: [TranslatePipe]
})
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { RouterModule, Route } from '@angular/router';
import { TranslateModule, TranslateService } from '@ngstack/translate';
import { MatButtonModule } from '@angular/material/button';
import { MatSelectModule } from '@angular/material/select';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand Down Expand Up @@ -31,6 +32,7 @@ export function setupTranslateService(service: TranslateService) {
BrowserModule,
BrowserAnimationsModule,
RouterModule.forRoot(routes, { initialNavigation: 'enabled' }),
HttpClientModule,
TranslateModule.forRoot(),
MatButtonModule,
MatSelectModule
Expand Down

0 comments on commit 9523dd2

Please sign in to comment.