@@ -635,7 +635,7 @@ class MatTableApp {
635635 columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
636636 isFourthRow = ( i : number , _rowData : TestData ) => i == 3 ;
637637
638- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
638+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
639639}
640640
641641@Component ( {
@@ -668,7 +668,7 @@ class NativeHtmlTableApp {
668668 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
669669 columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
670670
671- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
671+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
672672}
673673
674674@Component ( {
@@ -736,7 +736,7 @@ class StickyTableApp {
736736 dataSource = new FakeDataSource ( ) ;
737737 columnsToRender = [ 'column_a' ] ;
738738
739- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
739+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
740740}
741741
742742
@@ -803,9 +803,9 @@ class ArrayDataSourceMatTableApp implements AfterViewInit {
803803 dataSource = new MatTableDataSource < TestData > ( ) ;
804804 columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
805805
806- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
807- @ViewChild ( MatPaginator , { static : true } ) paginator : MatPaginator ;
808- @ViewChild ( MatSort , { static : true } ) sort : MatSort ;
806+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
807+ @ViewChild ( MatPaginator ) paginator : MatPaginator ;
808+ @ViewChild ( MatSort ) sort : MatSort ;
809809 @ViewChild ( MatSortHeader ) sortHeader : MatSortHeader ;
810810
811811 constructor ( ) {
@@ -856,8 +856,8 @@ class MatTableWithSortApp implements OnInit {
856856 dataSource = new MatTableDataSource < TestData > ( ) ;
857857 columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
858858
859- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
860- @ViewChild ( MatSort , { static : true } ) sort : MatSort ;
859+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
860+ @ViewChild ( MatSort ) sort : MatSort ;
861861
862862 constructor ( ) {
863863 this . underlyingDataSource . data = [ ] ;
@@ -907,8 +907,8 @@ class MatTableWithPaginatorApp implements OnInit {
907907 dataSource = new MatTableDataSource < TestData > ( ) ;
908908 columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
909909
910- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
911- @ViewChild ( MatPaginator , { static : true } ) paginator : MatPaginator ;
910+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
911+ @ViewChild ( MatPaginator ) paginator : MatPaginator ;
912912
913913 constructor ( ) {
914914 this . underlyingDataSource . data = [ ] ;
0 commit comments