6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { ChangeDetectionStrategy , Component , Directive , ViewEncapsulation } from '@angular/core' ;
9
+ import {
10
+ ChangeDetectionStrategy ,
11
+ Component ,
12
+ Directive ,
13
+ IterableDiffers , TemplateRef ,
14
+ ViewEncapsulation
15
+ } from '@angular/core' ;
10
16
import {
11
17
CDK_ROW_TEMPLATE , CdkFooterRow , CdkFooterRowDef ,
12
18
CdkHeaderRow ,
@@ -24,7 +30,12 @@ import {
24
30
providers : [ { provide : CdkHeaderRowDef , useExisting : MatHeaderRowDef } ] ,
25
31
inputs : [ 'columns: matHeaderRowDef' ] ,
26
32
} )
27
- export class MatHeaderRowDef extends CdkHeaderRowDef { }
33
+ export class MatHeaderRowDef extends CdkHeaderRowDef {
34
+ // TODO(andrewseguin): Remove this constructor after compiler-cli is updated; see issue #9329
35
+ constructor ( template : TemplateRef < any > , _differs : IterableDiffers ) {
36
+ super ( template , _differs ) ;
37
+ }
38
+ }
28
39
29
40
/**
30
41
* Footer row definition for the mat-table.
@@ -35,7 +46,12 @@ export class MatHeaderRowDef extends CdkHeaderRowDef { }
35
46
providers : [ { provide : CdkFooterRowDef , useExisting : MatFooterRowDef } ] ,
36
47
inputs : [ 'columns: matFooterRowDef' ] ,
37
48
} )
38
- export class MatFooterRowDef extends CdkFooterRowDef { }
49
+ export class MatFooterRowDef extends CdkFooterRowDef {
50
+ // TODO(andrewseguin): Remove this constructor after compiler-cli is updated; see issue #9329
51
+ constructor ( template : TemplateRef < any > , _differs : IterableDiffers ) {
52
+ super ( template , _differs ) ;
53
+ }
54
+ }
39
55
40
56
/**
41
57
* Data row definition for the mat-table.
@@ -48,6 +64,10 @@ export class MatFooterRowDef extends CdkFooterRowDef { }
48
64
inputs : [ 'columns: matRowDefColumns' , 'when: matRowDefWhen' ] ,
49
65
} )
50
66
export class MatRowDef < T > extends CdkRowDef < T > {
67
+ // TODO(andrewseguin): Remove this constructor after compiler-cli is updated; see issue #9329
68
+ constructor ( template : TemplateRef < any > , _differs : IterableDiffers ) {
69
+ super ( template , _differs ) ;
70
+ }
51
71
}
52
72
53
73
/** Footer template container that contains the cell outlet. Adds the right class and role. */
0 commit comments