Skip to content

Instantly share code, notes, and snippets.

@romanejaquez
Created August 21, 2020 03:35
Show Gist options
  • Save romanejaquez/d5b3ab2752f162908d97ee38e2fc5e72 to your computer and use it in GitHub Desktop.
Save romanejaquez/d5b3ab2752f162908d97ee38e2fc5e72 to your computer and use it in GitHub Desktop.
<div class="form-steps-container">
<ng-container *ngFor="let step of steps | async; let i = index;">
<div (click)="onStepClick(step)"
[ngClass]="{ 'step-complete': step.isComplete, 'step-incomplete': !step.isComplete, 'step-current': (currentStep | async)?.stepIndex === step.stepIndex }"
class="step-bubble">{{ step.stepIndex }}</div>
<div *ngIf="i < (steps | async)?.length - 1" class="step-divider"></div>
</ng-container>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment