1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

use viewChild func

This commit is contained in:
jaasen-livefront
2025-10-23 17:36:07 -07:00
parent bb96a14933
commit 3a80abb78c

View File

@@ -6,7 +6,8 @@ import {
input,
signal,
afterNextRender,
ViewChild,
viewChild,
TemplateRef,
} from "@angular/core";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
@@ -67,7 +68,7 @@ export class CalloutComponent implements AfterViewInit {
protected readonly titleId = `bit-callout-title-${nextId++}`;
@ViewChild("content", { static: false })
readonly content = viewChild(TemplateRef);
private contentRef!: ElementRef<HTMLElement>;
readonly contentText = signal("");