mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
use viewChild func
This commit is contained in:
@@ -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("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user