Skip to content

Commit

Permalink
Merge pull request #17 from rushi216/master
Browse files Browse the repository at this point in the history
Removed private accessor for #16
  • Loading branch information
maiyaporn authored May 30, 2017
2 parents a7ec443 + 0e7328a commit 39c53fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wizard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ export class WizardComponent implements OnInit, AfterContentInit {
this.steps[0].isActive = true;
}

private get steps(): Array<WizardStepComponent> {
get steps(): Array<WizardStepComponent> {
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;
Expand All @@ -78,11 +78,11 @@ export class WizardComponent implements OnInit, AfterContentInit {
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;
}

Expand Down

1 comment on commit 39c53fa

@mangeshdesai26
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @maiyaporn

Please sign in to comment.