@@ -635,7 +635,7 @@ class MatTableApp {
635
635
columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
636
636
isFourthRow = ( i : number , _rowData : TestData ) => i == 3 ;
637
637
638
- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
638
+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
639
639
}
640
640
641
641
@Component ( {
@@ -668,7 +668,7 @@ class NativeHtmlTableApp {
668
668
dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
669
669
columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
670
670
671
- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
671
+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
672
672
}
673
673
674
674
@Component ( {
@@ -736,7 +736,7 @@ class StickyTableApp {
736
736
dataSource = new FakeDataSource ( ) ;
737
737
columnsToRender = [ 'column_a' ] ;
738
738
739
- @ViewChild ( MatTable , { static : true } ) table : MatTable < TestData > ;
739
+ @ViewChild ( MatTable ) table : MatTable < TestData > ;
740
740
}
741
741
742
742
@@ -803,9 +803,9 @@ class ArrayDataSourceMatTableApp implements AfterViewInit {
803
803
dataSource = new MatTableDataSource < TestData > ( ) ;
804
804
columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
805
805
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 ;
809
809
@ViewChild ( MatSortHeader ) sortHeader : MatSortHeader ;
810
810
811
811
constructor ( ) {
@@ -856,8 +856,8 @@ class MatTableWithSortApp implements OnInit {
856
856
dataSource = new MatTableDataSource < TestData > ( ) ;
857
857
columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
858
858
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 ;
861
861
862
862
constructor ( ) {
863
863
this . underlyingDataSource . data = [ ] ;
@@ -907,8 +907,8 @@ class MatTableWithPaginatorApp implements OnInit {
907
907
dataSource = new MatTableDataSource < TestData > ( ) ;
908
908
columnsToRender = [ 'column_a' , 'column_b' , 'column_c' ] ;
909
909
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 ;
912
912
913
913
constructor ( ) {
914
914
this . underlyingDataSource . data = [ ] ;
0 commit comments