Migrate to @angular-eslint/prefer-inject and @typescript-eslint/prefer-readonly (#11665)

This commit is contained in:
Denys Vuika
2026-02-18 15:38:01 +00:00
committed by GitHub
parent f8fa996b04
commit 3f542d99ba
470 changed files with 2638 additions and 2247 deletions
@@ -28,7 +28,8 @@ import {
QueryList,
SimpleChanges,
TemplateRef,
ViewChildren
ViewChildren,
inject
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
@@ -46,6 +47,8 @@ import { IconModule } from '@alfresco/adf-core';
imports: [CommonModule, IconModule, TranslatePipe, MatButtonModule, BreadcrumbFocusDirective]
})
export class BreadcrumbComponent implements AfterContentInit, OnChanges {
private readonly cdr = inject(ChangeDetectorRef);
private _breadcrumbTemplateRefs: Array<TemplateRef<unknown>> = [];
@Input()
@@ -62,8 +65,6 @@ export class BreadcrumbComponent implements AfterContentInit, OnChanges {
selectedBreadcrumbs: Array<TemplateRef<unknown>> = [];
constructor(private cdr: ChangeDetectorRef) {}
ngAfterContentInit() {
this.breadcrumbItems.changes
.pipe(