Skip to content

Commit

Permalink
Test deployment new 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ndricimrr committed Jan 22, 2024
1 parent 18edca2 commit c4839f6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { APP_BASE_HREF, CommonModule } from "@angular/common";
import { InjectionToken } from "@angular/core";

// AoT requires an exported function for factories
// export function HttpLoaderFactory(http: HttpClient) {
// return new TranslateHttpLoader(http);
// }
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);
}

// export const BASE_HREF = new InjectionToken<string>("BASE_HREF");

Expand All @@ -34,10 +34,11 @@ import { InjectionToken } from "@angular/core";
// );
// }

export function HttpLoaderFactory(http: HttpClient) {
const baseHref = document.getElementsByTagName("base")[0].href;
return new TranslateHttpLoader(http, `${baseHref}assets/i18n/`, ".json");
}
// export function HttpLoaderFactory(http: HttpClient) {
// const baseHref = document.getElementsByTagName("base")[0].href;

// return new TranslateHttpLoader(http, `${baseHref}assets/i18n/`, ".json");
// }

@NgModule({
declarations: [
Expand Down

0 comments on commit c4839f6

Please sign in to comment.