Skip to content

Commit 85f0258

Browse files
committed
Remove getter and setter for stepControl input
1 parent 1e51fae commit 85f0258

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: src/cdk/stepper/stepper.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ export class CdkStep {
6767

6868
/** The top level abstract control of the step. */
6969
@Input()
70-
get stepControl() { return this._stepControl; }
71-
set stepControl(control: AbstractControl) {
72-
this._stepControl = control;
73-
}
74-
private _stepControl: AbstractControl;
70+
stepControl: AbstractControl;
7571

7672
/** Whether user has seen the expanded step content or not . */
7773
interacted = false;
@@ -106,7 +102,7 @@ export class CdkStep {
106102
private _customCompleted: boolean | null = null;
107103

108104
private get _defaultCompleted() {
109-
return this._stepControl ? this._stepControl.valid && this.interacted : this.interacted;
105+
return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
110106
}
111107

112108
constructor(private _stepper: CdkStepper) { }

0 commit comments

Comments
 (0)