Skip to content

Commit 660431b

Browse files
karajosephperrott
authored andcommitted
chore(ivy): add static flag to table-related static queries (#15257)
1 parent cb3d5b8 commit 660431b

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
@@ -356,9 +356,9 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
356356
new BehaviorSubject<{start: number, end: number}>({start: 0, end: Number.MAX_VALUE});
357357

358358
// Outlets in the table's template where the header, data rows, and footer will be inserted.
359-
@ViewChild(DataRowOutlet) _rowOutlet: DataRowOutlet;
360-
@ViewChild(HeaderRowOutlet) _headerRowOutlet: HeaderRowOutlet;
361-
@ViewChild(FooterRowOutlet) _footerRowOutlet: FooterRowOutlet;
359+
@ViewChild(DataRowOutlet, {static: true}) _rowOutlet: DataRowOutlet;
360+
@ViewChild(HeaderRowOutlet, {static: true}) _headerRowOutlet: HeaderRowOutlet;
361+
@ViewChild(FooterRowOutlet, {static: true}) _footerRowOutlet: FooterRowOutlet;
362362

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

0 commit comments

Comments
 (0)