|
|
@ -1,11 +1,12 @@
|
|
|
|
import { HttpClient, HttpClientModule} from "@angular/common/http";
|
|
|
|
import {PlatformLocation} from "@angular/common";
|
|
|
|
import { NgModule } from "@angular/core";
|
|
|
|
import {HttpClient, HttpClientModule} from "@angular/common/http";
|
|
|
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import { HttpModule } from "@angular/http";
|
|
|
|
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
|
|
|
import { MatButtonModule, MatCardModule, MatInputModule, MatTabsModule } from "@angular/material";
|
|
|
|
import {HttpModule} from "@angular/http";
|
|
|
|
import { BrowserModule } from "@angular/platform-browser";
|
|
|
|
import {MatButtonModule, MatCardModule, MatInputModule, MatTabsModule} from "@angular/material";
|
|
|
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|
|
|
import {BrowserModule} from "@angular/platform-browser";
|
|
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
|
|
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
|
|
|
|
|
|
|
import {RouterModule, Routes} from "@angular/router";
|
|
|
|
|
|
|
|
|
|
|
|
// Third Party
|
|
|
|
// Third Party
|
|
|
|
//import { DragulaModule, DragulaService } from 'ng2-dragula/ng2-dragula';
|
|
|
|
//import { DragulaModule, DragulaService } from 'ng2-dragula/ng2-dragula';
|
|
|
@ -56,7 +57,11 @@ const routes: Routes = [
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// AoT requires an exported function for factories
|
|
|
|
// AoT requires an exported function for factories
|
|
|
|
export function HttpLoaderFactory(http: HttpClient) {
|
|
|
|
export function HttpLoaderFactory(http: HttpClient, platformLocation: PlatformLocation) {
|
|
|
|
|
|
|
|
const base = platformLocation.getBaseHrefFromDOM();
|
|
|
|
|
|
|
|
if (base.length > 1) {
|
|
|
|
|
|
|
|
return new TranslateHttpLoader(http, `${base}/translations/`, ".json");
|
|
|
|
|
|
|
|
}
|
|
|
|
return new TranslateHttpLoader(http, "/translations/", ".json");
|
|
|
|
return new TranslateHttpLoader(http, "/translations/", ".json");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|