Skip to content

Commit f1df032

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

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ export class CdkStep {
6666
@ViewChild(TemplateRef) content: TemplateRef<any>;
6767

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

7671
/** Whether user has seen the expanded step content or not . */
7772
interacted = false;
@@ -106,7 +101,7 @@ export class CdkStep {
106101
private _customCompleted: boolean | null = null;
107102

108103
private get _defaultCompleted() {
109-
return this._stepControl ? this._stepControl.valid && this.interacted : this.interacted;
104+
return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
110105
}
111106

112107
constructor(private _stepper: CdkStepper) { }

0 commit comments

Comments
 (0)