File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,10 @@ export class CdkStep implements OnChanges {
184
184
return this . stepControl && this . stepControl . invalid ;
185
185
}
186
186
187
+ /** @breaking -change 8.0.0 remove the `?` after `stepperOptions` */
187
188
constructor (
188
189
@Inject ( forwardRef ( ( ) => CdkStepper ) ) private _stepper : CdkStepper ,
189
- @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions : StepperOptions ) {
190
+ @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions ? : StepperOptions ) {
190
191
this . _stepperOptions = stepperOptions ? stepperOptions : { } ;
191
192
this . _showError = ! ! this . _stepperOptions . showError ;
192
193
this . _displayDefaultIndicatorType = this . _stepperOptions . displayDefaultIndicatorType !== false ;
Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ export class MatStep extends CdkStep implements ErrorStateMatcher {
60
60
/** Content for step label given by `<ng-template matStepLabel>`. */
61
61
@ContentChild ( MatStepLabel ) stepLabel : MatStepLabel ;
62
62
63
+ /** @breaking -change 8.0.0 remove the `?` after `stepperOptions` */
63
64
constructor ( @Inject ( forwardRef ( ( ) => MatStepper ) ) stepper : MatStepper ,
64
65
@SkipSelf ( ) private _errorStateMatcher : ErrorStateMatcher ,
65
- @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions : StepperOptions ) {
66
+ @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions ? : StepperOptions ) {
66
67
super ( stepper , stepperOptions ) ;
67
68
}
68
69
You can’t perform that action at this time.
0 commit comments