Update Angular and Material to v19
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BrowserModule } from "@angular/platform-browser";
|
||||
import { APP_INITIALIZER, NgModule } from "@angular/core";
|
||||
import { NgModule, inject, provideAppInitializer } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
import {
|
||||
HttpClient,
|
||||
@@ -228,12 +228,10 @@ export function initConfig(configService: ConfigurationHelper) {
|
||||
ConfigurationHelper,
|
||||
DatePipe,
|
||||
ServiceCacheApi,
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: initConfig,
|
||||
deps: [ConfigurationHelper],
|
||||
multi: true,
|
||||
},
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = (initConfig)(inject(ConfigurationHelper));
|
||||
return initializerFn();
|
||||
}),
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: JwtAuthInterceptor, multi: true },
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user