diff --git a/src/wizard.component.ts b/src/wizard.component.ts
index 20e8bb9..630b793 100644
--- a/src/wizard.component.ts
+++ b/src/wizard.component.ts
@@ -16,9 +16,9 @@ import { WizardStepComponent } from './wizard-step.component';
`
,
@@ -33,13 +33,13 @@ import { WizardStepComponent } from './wizard-step.component';
'.disabled { color: #ccc; }',
'.completed { cursor: default; }'
]
-})
+ })
export class WizardComponent implements OnInit, AfterContentInit {
@ContentChildren(WizardStepComponent)
wizardSteps: QueryList;
- private _steps: Array = [];
- private _isCompleted: boolean = false;
+ private _steps: Array = [];
+ private _isCompleted: boolean = false;
@Output()
onStepChanged: EventEmitter = new EventEmitter();
@@ -54,19 +54,19 @@ export class WizardComponent implements OnInit, AfterContentInit {
this.steps[0].isActive = true;
}
- private get steps(): Array {
+ get steps(): Array {
return this._steps.filter(step => !step.hidden);
}
- private get isCompleted(): boolean {
+ get isCompleted(): boolean {
return this._isCompleted;
}
- private get activeStep(): WizardStepComponent {
+ get activeStep(): WizardStepComponent {
return this.steps.find(step => step.isActive);
}
- private set activeStep(step: WizardStepComponent) {
+ set activeStep(step: WizardStepComponent) {
if (step !== this.activeStep && !step.isDisabled) {
this.activeStep.isActive = false;
step.isActive = true;
@@ -74,15 +74,15 @@ export class WizardComponent implements OnInit, AfterContentInit {
}
}
- private get activeStepIndex(): number {
+ get activeStepIndex(): number {
return this.steps.indexOf(this.activeStep);
}
- private get hasNextStep(): boolean {
+ get hasNextStep(): boolean {
return this.activeStepIndex < this.steps.length - 1;
}
- private get hasPrevStep(): boolean {
+ get hasPrevStep(): boolean {
return this.activeStepIndex > 0;
}
@@ -116,3 +116,4 @@ export class WizardComponent implements OnInit, AfterContentInit {
}
}
+