@@ -661,13 +661,13 @@ describe('MatTree', () => {
661661} ) ;
662662
663663export class TestData {
664- pizzaTopping : string ;
665- pizzaCheese : string ;
666- pizzaBase : string ;
667- level : number ;
668- children : TestData [ ] ;
669- observableChildren : BehaviorSubject < TestData [ ] > ;
670- isSpecial : boolean ;
664+ pizzaTopping ! : string ;
665+ pizzaCheese ! : string ;
666+ pizzaBase ! : string ;
667+ level ! : number ;
668+ children ! : TestData [ ] ;
669+ observableChildren ! : BehaviorSubject < TestData [ ] > ;
670+ isSpecial = false ;
671671 isDisabled ?: boolean ;
672672
673673 constructor (
@@ -879,7 +879,7 @@ class SimpleMatTreeApp {
879879
880880 underlyingDataSource = new FakeDataSource ( ) ;
881881
882- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
882+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
883883
884884 constructor ( ) {
885885 this . underlyingDataSource . connect ( ) . subscribe ( data => {
@@ -973,8 +973,8 @@ class MatTreeWithNullOrUndefinedChild {
973973 imports : [ MatTreeModule ] ,
974974} )
975975class MatNestedTreeWithNullOrUndefinedChild {
976- treeControl : NestedTreeControl < FoodNode > ;
977- dataSource : MatTreeNestedDataSource < FoodNode > ;
976+ treeControl ! : NestedTreeControl < FoodNode > ;
977+ dataSource ! : MatTreeNestedDataSource < FoodNode > ;
978978
979979 constructor ( ) {
980980 this . treeControl = new NestedTreeControl < FoodNode > ( this . _getChildren ) ;
@@ -1008,7 +1008,7 @@ class NestedMatTreeApp {
10081008 dataSource = new MatTreeNestedDataSource < TestData > ( ) ;
10091009 underlyingDataSource = new FakeDataSource ( ) ;
10101010
1011- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
1011+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
10121012
10131013 constructor ( ) {
10141014 this . underlyingDataSource . connect ( ) . subscribe ( data => {
@@ -1045,7 +1045,7 @@ class WhenNodeNestedMatTreeApp {
10451045 dataSource = new MatTreeNestedDataSource < TestData > ( ) ;
10461046 underlyingDataSource = new FakeDataSource ( ) ;
10471047
1048- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
1048+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
10491049
10501050 constructor ( ) {
10511051 this . underlyingDataSource . connect ( ) . subscribe ( data => {
@@ -1091,7 +1091,7 @@ class MatTreeAppWithToggle {
10911091 dataSource = new MatTreeFlatDataSource ( this . treeControl , this . treeFlattener ) ;
10921092 underlyingDataSource = new FakeDataSource ( ) ;
10931093
1094- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
1094+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
10951095
10961096 constructor ( ) {
10971097 this . underlyingDataSource . connect ( ) . subscribe ( data => {
@@ -1128,7 +1128,7 @@ class NestedMatTreeAppWithToggle {
11281128 dataSource = new MatTreeNestedDataSource < TestData > ( ) ;
11291129 underlyingDataSource = new FakeDataSource ( ) ;
11301130
1131- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
1131+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
11321132
11331133 constructor ( ) {
11341134 this . underlyingDataSource . connect ( ) . subscribe ( data => {
@@ -1177,7 +1177,7 @@ class WhenNodeMatTreeApp {
11771177 dataSource = new MatTreeFlatDataSource ( this . treeControl , this . treeFlattener ) ;
11781178 underlyingDataSource = new FakeDataSource ( ) ;
11791179
1180- @ViewChild ( MatTree ) tree : MatTree < TestData > ;
1180+ @ViewChild ( MatTree ) tree ! : MatTree < TestData > ;
11811181
11821182 constructor ( ) {
11831183 this . underlyingDataSource . connect ( ) . subscribe ( data => {
0 commit comments