Skip to content

Commit 9ae2d12

Browse files
authored
removed private properties, necessary for ng aot
angular/angular-cli#5621
1 parent 42bf065 commit 9ae2d12

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/wizard.component.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ import { WizardStepComponent } from './wizard-step.component';
3333
'.disabled { color: #ccc; }',
3434
'.completed { cursor: default; }'
3535
]
36-
})
3736
export class WizardComponent implements OnInit, AfterContentInit {
3837
@ContentChildren(WizardStepComponent)
3938
wizardSteps: QueryList<WizardStepComponent>;
4039

41-
private _steps: Array<WizardStepComponent> = [];
42-
private _isCompleted: boolean = false;
40+
_steps: Array<WizardStepComponent> = [];
41+
_isCompleted: boolean = false;
4342

4443
@Output()
4544
onStepChanged: EventEmitter<WizardStepComponent> = new EventEmitter<WizardStepComponent>();
@@ -54,35 +53,35 @@ export class WizardComponent implements OnInit, AfterContentInit {
5453
this.steps[0].isActive = true;
5554
}
5655

57-
private get steps(): Array<WizardStepComponent> {
56+
get steps(): Array<WizardStepComponent> {
5857
return this._steps.filter(step => !step.hidden);
5958
}
6059

61-
private get isCompleted(): boolean {
60+
get isCompleted(): boolean {
6261
return this._isCompleted;
6362
}
6463

65-
private get activeStep(): WizardStepComponent {
64+
get activeStep(): WizardStepComponent {
6665
return this.steps.find(step => step.isActive);
6766
}
6867

69-
private set activeStep(step: WizardStepComponent) {
68+
set activeStep(step: WizardStepComponent) {
7069
if (step !== this.activeStep && !step.isDisabled) {
7170
this.activeStep.isActive = false;
7271
step.isActive = true;
7372
this.onStepChanged.emit(step);
7473
}
7574
}
7675

77-
private get activeStepIndex(): number {
76+
get activeStepIndex(): number {
7877
return this.steps.indexOf(this.activeStep);
7978
}
8079

81-
private get hasNextStep(): boolean {
80+
get hasNextStep(): boolean {
8281
return this.activeStepIndex < this.steps.length - 1;
8382
}
8483

85-
private get hasPrevStep(): boolean {
84+
get hasPrevStep(): boolean {
8685
return this.activeStepIndex > 0;
8786
}
8887

@@ -116,3 +115,4 @@ export class WizardComponent implements OnInit, AfterContentInit {
116115
}
117116

118117
}
118+

0 commit comments

Comments
 (0)