diff --git a/generators/angular/templates/src/main/webapp/app/app-page-title-strategy.ts.ejs b/generators/angular/templates/src/main/webapp/app/app-page-title-strategy.ts.ejs index 16b6f9c4883e..e7de07de4c49 100644 --- a/generators/angular/templates/src/main/webapp/app/app-page-title-strategy.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/app-page-title-strategy.ts.ejs @@ -24,10 +24,9 @@ import { TranslateService } from "@ngx-translate/core"; @Injectable() export class AppPageTitleStrategy extends TitleStrategy { - <%_ if (enableTranslation) { _%>private translateService = inject(TranslateService);<%_ } _%> - constructor() { - super(); - } +<%_ if (enableTranslation) { _%> + private translateService = inject(TranslateService); +<%_ } _%> override updateTitle(routerState: RouterStateSnapshot): void { let pageTitle = this.buildTitle(routerState);