From 26cb584326ffa34ec7677835f93bbc20387b16b4 Mon Sep 17 00:00:00 2001 From: John Rassa Date: Tue, 25 Jun 2024 08:48:44 -0400 Subject: [PATCH] refactor: replace @ContentChild annotation usage with contentChild signal queries (#396) --- .../table/columns/ago-date/ago-date-column.component.html | 2 +- .../table/columns/asy-abstract-value-column.component.ts | 4 ++-- src/app/common/table/columns/date/date-column.component.html | 2 +- .../asy-expandable-list-column.component.html | 4 ++-- .../expandable-list/asy-expandable-list-column.component.ts | 5 ++--- src/app/common/table/columns/text/text-column.component.html | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/app/common/table/columns/ago-date/ago-date-column.component.html b/src/app/common/table/columns/ago-date/ago-date-column.component.html index 6d81eb12..c604cb64 100644 --- a/src/app/common/table/columns/ago-date/ago-date-column.component.html +++ b/src/app/common/table/columns/ago-date/ago-date-column.component.html @@ -4,7 +4,7 @@ {{ header() ?? (name | titlecase) }} extends AsyAbstractColu readonly header = input(); readonly sortable = input(true, { transform: booleanAttribute }); - @ContentChild(HeaderTemplateDirective, { read: TemplateRef }) headerTemplate?: TemplateRef; + readonly headerTemplate = contentChild(HeaderTemplateDirective, { read: TemplateRef }); } diff --git a/src/app/common/table/columns/date/date-column.component.html b/src/app/common/table/columns/date/date-column.component.html index 7fc325d1..00037523 100644 --- a/src/app/common/table/columns/date/date-column.component.html +++ b/src/app/common/table/columns/date/date-column.component.html @@ -4,7 +4,7 @@ {{ header() ?? (name | titlecase) }}