diff --git a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache index 10842b433c3..c430f8c0b5c 100644 --- a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache +++ b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache @@ -1,8 +1,9 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { provideHttpClientTesting } from '@angular/common/http/testing'; import { HarnessLoader } from '@angular/cdk/testing'; import { MatDialogHarness } from '@angular/material/dialog/testing'; import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; +import { provideHttpClient } from '@angular/common/http'; import { of } from 'rxjs'; import HealthComponent from './health.component'; @@ -17,7 +18,7 @@ describe('HealthComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [HttpClientTestingModule], + providers: [provideHttpClient(), provideHttpClientTesting()], }) .overrideTemplate(HealthComponent, '') .compileComponents(); diff --git a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.service.spec.ts.mustache b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.service.spec.ts.mustache index fc477f5a17f..235b226362c 100644 --- a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.service.spec.ts.mustache +++ b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.service.spec.ts.mustache @@ -1,5 +1,6 @@ import { TestBed } from '@angular/core/testing'; -import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; +import { provideHttpClientTesting, HttpTestingController } from '@angular/common/http/testing'; +import { provideHttpClient } from '@angular/common/http'; import { HealthService } from './health.service'; import { ApplicationConfigService } from './../../config/application-config.service'; @@ -11,7 +12,7 @@ describe('HealthService Service', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [HttpClientTestingModule], + providers: [provideHttpClient(), provideHttpClientTesting()], }); service = TestBed.inject(HealthService); diff --git a/src/main/resources/generator/client/angular/core/angular.json.mustache b/src/main/resources/generator/client/angular/core/angular.json.mustache index e3253bb482c..4c72f90f69b 100644 --- a/src/main/resources/generator/client/angular/core/angular.json.mustache +++ b/src/main/resources/generator/client/angular/core/angular.json.mustache @@ -10,7 +10,7 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:application", + "builder": "@angular/build:application", "options": { "outputPath": { "base": "{{projectBuildDirectory}}/classes/static", @@ -69,7 +69,7 @@ "buildTarget": "project:build", "proxyConfig": "proxy.conf.json" }, - "builder": "@angular-devkit/build-angular:dev-server", + "builder": "@angular/build:dev-server", "configurations": { "production": { "buildTarget": "project:build:production" @@ -87,7 +87,7 @@ } }, "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", + "builder": "@angular/build:extract-i18n", "options": { "buildTarget": "project:build" } diff --git a/src/main/resources/generator/client/angular/core/src/main/webapp/index.html.mustache b/src/main/resources/generator/client/angular/core/src/main/webapp/index.html.mustache index 7fe12b318ea..7fefd9dde17 100644 --- a/src/main/resources/generator/client/angular/core/src/main/webapp/index.html.mustache +++ b/src/main/resources/generator/client/angular/core/src/main/webapp/index.html.mustache @@ -11,6 +11,6 @@
-