From aef6f5a63cf76376526029f3ec29f2821296bfff Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Wed, 20 Feb 2019 17:42:24 -0800 Subject: [PATCH] chore(ivy): add static flag to table-related static queries --- src/cdk/table/table.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cdk/table/table.ts b/src/cdk/table/table.ts index b5f2aa7019b6..373b6a7473d7 100644 --- a/src/cdk/table/table.ts +++ b/src/cdk/table/table.ts @@ -351,9 +351,9 @@ export class CdkTable implements AfterContentChecked, CollectionViewer, OnDes new BehaviorSubject<{start: number, end: number}>({start: 0, end: Number.MAX_VALUE}); // Outlets in the table's template where the header, data rows, and footer will be inserted. - @ViewChild(DataRowOutlet) _rowOutlet: DataRowOutlet; - @ViewChild(HeaderRowOutlet) _headerRowOutlet: HeaderRowOutlet; - @ViewChild(FooterRowOutlet) _footerRowOutlet: FooterRowOutlet; + @ViewChild(DataRowOutlet, {static: true}) _rowOutlet: DataRowOutlet; + @ViewChild(HeaderRowOutlet, {static: true}) _headerRowOutlet: HeaderRowOutlet; + @ViewChild(FooterRowOutlet, {static: true}) _footerRowOutlet: FooterRowOutlet; /** * The column definitions provided by the user that contain what the header, data, and footer