@@ -85,10 +85,16 @@ export const _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);
85
85
selector : '[cdkHeaderRowDef]' ,
86
86
inputs : [ 'columns: cdkHeaderRowDef' , 'sticky: cdkHeaderRowDefSticky' ] ,
87
87
} )
88
- export class CdkHeaderRowDef extends _CdkHeaderRowDefBase implements CanStick {
88
+ export class CdkHeaderRowDef extends _CdkHeaderRowDefBase implements CanStick , OnChanges {
89
89
constructor ( template : TemplateRef < any > , _differs : IterableDiffers ) {
90
90
super ( template , _differs ) ;
91
91
}
92
+
93
+ // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
94
+ // Explicitly define it so that the method is called as part of the Angular lifecycle.
95
+ ngOnChanges ( changes : SimpleChanges ) : void {
96
+ super . ngOnChanges ( changes ) ;
97
+ }
92
98
}
93
99
94
100
// Boilerplate for applying mixins to CdkFooterRowDef.
@@ -104,10 +110,16 @@ export const _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);
104
110
selector : '[cdkFooterRowDef]' ,
105
111
inputs : [ 'columns: cdkFooterRowDef' , 'sticky: cdkFooterRowDefSticky' ] ,
106
112
} )
107
- export class CdkFooterRowDef extends _CdkFooterRowDefBase implements CanStick {
113
+ export class CdkFooterRowDef extends _CdkFooterRowDefBase implements CanStick , OnChanges {
108
114
constructor ( template : TemplateRef < any > , _differs : IterableDiffers ) {
109
115
super ( template , _differs ) ;
110
116
}
117
+
118
+ // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
119
+ // Explicitly define it so that the method is called as part of the Angular lifecycle.
120
+ ngOnChanges ( changes : SimpleChanges ) : void {
121
+ super . ngOnChanges ( changes ) ;
122
+ }
111
123
}
112
124
113
125
/**
0 commit comments