Skip to content

Commit 576abc5

Browse files
karajelbourn
authored andcommitted
chore(ivy): add static flag to table-related static queries (#15257)
1 parent f22561b commit 576abc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdk/table/table.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
351351
new BehaviorSubject<{start: number, end: number}>({start: 0, end: Number.MAX_VALUE});
352352

353353
// Outlets in the table's template where the header, data rows, and footer will be inserted.
354-
@ViewChild(DataRowOutlet) _rowOutlet: DataRowOutlet;
355-
@ViewChild(HeaderRowOutlet) _headerRowOutlet: HeaderRowOutlet;
356-
@ViewChild(FooterRowOutlet) _footerRowOutlet: FooterRowOutlet;
354+
@ViewChild(DataRowOutlet, {static: true}) _rowOutlet: DataRowOutlet;
355+
@ViewChild(HeaderRowOutlet, {static: true}) _headerRowOutlet: HeaderRowOutlet;
356+
@ViewChild(FooterRowOutlet, {static: true}) _footerRowOutlet: FooterRowOutlet;
357357

358358
/**
359359
* The column definitions provided by the user that contain what the header, data, and footer

0 commit comments

Comments
 (0)