WEB-201 Merge angular-update-18 into dev to upgrade Angular from v17 to v18 (#2513)

This commit is contained in:
Gopi Kishan
2025-06-13 08:19:03 -06:00
committed by GitHub
parent 0a8aa1d5e9
commit b7c6ea857a
735 changed files with 8050 additions and 20668 deletions
+9 -8
View File
@@ -2,7 +2,7 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpBackend, HttpClient, HttpClientModule } from '@angular/common/http';
import { HttpBackend, HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
/** Environment Configuration */
@@ -65,6 +65,11 @@ export function HttpLoaderFactory(http: HttpClient) {
}
@NgModule({
declarations: [
WebAppComponent,
NotFoundComponent
],
bootstrap: [WebAppComponent],
imports: [
TranslateModule.forRoot({
loader: {
@@ -82,7 +87,6 @@ export function HttpLoaderFactory(http: HttpClient) {
}),
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
PortalModule,
CoreModule,
HomeModule,
@@ -108,11 +112,8 @@ export function HttpLoaderFactory(http: HttpClient) {
AppRoutingModule
],
declarations: [
WebAppComponent,
NotFoundComponent
],
providers: [DatePipe],
bootstrap: [WebAppComponent]
providers: [
DatePipe,
provideHttpClient(withInterceptorsFromDi())]
})
export class AppModule {}