Skip to content

Commit

Permalink
fix(metergroup): Use signal query viewChild.
Browse files Browse the repository at this point in the history
Use the new viewChild signal query instead of the unintended decorator ViewChild. Fixes primefaces#15305
  • Loading branch information
joshuahills committed Apr 18, 2024
1 parent 87b630b commit e191dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/metergroup/metergroup.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -142,7 +142,7 @@ export class MeterGroup implements AfterContentInit {

iconTemplate: TemplateRef<any> | undefined;

container = ViewChild('container', { read: ElementRef });
container = viewChild('container', { read: ElementRef });

containerEffect = effect(() => {
const _container = this.container();
Expand Down

0 comments on commit e191dcf

Please sign in to comment.