Repository: jhipster/jhipster-lite
Pull request #12000 (2025-02-27 20:24:00)

Angular 19.2
- [x] Upgrade dependencies
- [x] Migration to self-closing tags
- [x] Template strings in templates



Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactory.java
index 0576df51b..18c6a3a1d 100644
--- a/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactory.java
@@ -143,7 +143,7 @@ public class AngularOauth2ModuleFactory {
           .add(lineAfterRegex("this.appName.set\\('" + properties.projectBaseName().name() + "'\\);"), INIT_AUTHENTICATION)
           .and()
         .in(path("src/main/webapp/app/app.component.html"))
-          .add(MENU_NEEDLE, indentation.spaces() + "<jhi-login></jhi-login>")
+          .add(MENU_NEEDLE, indentation.spaces() + "<jhi-login />")
           .and()
         .and()
       .build();
diff --git a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.html.mustache b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.html.mustache
index a4c64b361..ed3e93224 100644
--- a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.html.mustache
+++ b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.html.mustache
@@ -2,7 +2,7 @@
   <mat-card-content>
     @if (account(); as accountRef) {
       <div>
-        <div>You are logged in as user "{{ accountRef.login }}".</div>
+        <div>{{ `You are logged in as user "${accountRef.login}".` }}</div>
         <button (click)="logout()" mat-flat-button color="primary">Logout</button>
       </div>
     } @else {
diff --git a/src/main/resources/generator/dependencies/angular/package.json b/src/main/resources/generator/dependencies/angular/package.json
index cbe84a1c9..2ac82b793 100644
--- a/src/main/resources/generator/dependencies/angular/package.json
+++ b/src/main/resources/generator/dependencies/angular/package.json
@@ -1,15 +1,15 @@
 {
   "dependencies": {
     "@angular-builders/jest": "19.0.0",
-    "@angular/build": "19.1.8",
-    "@angular/cdk": "19.1.5",
-    "@angular/cli": "19.1.8",
-    "@angular/compiler-cli": "19.1.7",
-    "@angular/core": "19.1.7",
-    "@angular/material": "19.1.5",
+    "@angular/build": "19.2.0",
+    "@angular/cdk": "19.2.1",
+    "@angular/cli": "19.2.0",
+    "@angular/compiler-cli": "19.2.0",
+    "@angular/core": "19.2.0",
+    "@angular/material": "19.2.1",
     "angular-eslint": "19.1.0",
     "jest-environment-jsdom": "29.7.0",
-    "jest-preset-angular": "14.5.2",
+    "jest-preset-angular": "14.5.3",
     "jest-sonar-reporter": "2.0.0",
     "rxjs": "7.8.2",
     "tslib": "2.8.1",


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactoryTest.java
index 95cb398a6..3bad6bac2 100644
--- a/src/test/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactoryTest.java
@@ -78,7 +78,7 @@ class AngularOauth2ModuleFactoryTest {
       )
       .and()
       .hasFile("src/main/webapp/app/app.component.html")
-      .containing("<jhi-login></jhi-login>")
+      .containing("<jhi-login />")
       .and()
       .hasFile("src/main/webapp/app/app.component.spec.ts")
       .and();