Skip to content

Instantly share code, notes, and snippets.

@romanejaquez
Created August 21, 2020 02:26
Show Gist options
  • Save romanejaquez/b687bb91a024af02c7d4e84feefb8e5a to your computer and use it in GitHub Desktop.
Save romanejaquez/b687bb91a024af02c7d4e84feefb8e5a to your computer and use it in GitHub Desktop.
<div class="form-page-container">
<app-steps></app-steps>
<div class="step-page-container">
<div class="form-step">
<ng-container [ngSwitch]="(currentStep | async)?.stepIndex">
<ng-container *ngSwitchCase="'1'">
<app-step-template [step]="(currentStep | async)"></app-step-template>
</ng-container>
<ng-container *ngSwitchCase="'2'">
<app-step-template [step]="(currentStep | async)"></app-step-template>
</ng-container>
<ng-container *ngSwitchCase="'3'">
<app-step-template [step]="(currentStep | async)"></app-step-template>
</ng-container>
</ng-container>
</div>
</div>
<button (click)="onNextStep()" [disabled]="!(currentStep | async)?.isComplete" class="form-continue-btn">
{{ showButtonLabel() }}
</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment