From e191dcf47c37a7ba87d2b2293d683efd4c95334f Mon Sep 17 00:00:00 2001 From: Josh Hills Date: Thu, 18 Apr 2024 15:41:06 +0100 Subject: [PATCH] fix(metergroup): Use signal query viewChild. Use the new viewChild signal query instead of the unintended decorator ViewChild. Fixes #15305 --- src/app/components/metergroup/metergroup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/metergroup/metergroup.ts b/src/app/components/metergroup/metergroup.ts index ab8c6af8095..33874fca093 100644 --- a/src/app/components/metergroup/metergroup.ts +++ b/src/app/components/metergroup/metergroup.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation, effect, forwardRef, inject, ViewChild } from '@angular/core'; +import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation, effect, forwardRef, inject, viewChild } from '@angular/core'; import { PrimeTemplate, SharedModule } from 'primeng/api'; import { DomHandler } from 'primeng/dom'; import { MeterItem } from './metergroup.interface'; @@ -142,7 +142,7 @@ export class MeterGroup implements AfterContentInit { iconTemplate: TemplateRef | undefined; - container = ViewChild('container', { read: ElementRef }); + container = viewChild('container', { read: ElementRef }); containerEffect = effect(() => { const _container = this.container();