https://multi-step-forms-chi.vercel.app/
-
Clone the repository:
git clone https://git@github.com:DuxEva/multi-step-form.git
-
Install dependencies:
npm install
-
Run the application:
ng serve
The application will be accessible at
http://localhost:4200.
- Navigate through the different steps to select a plan.
- Choose additional add-ons as needed.
- Review the summary to see the selected plan and add-ons along with the total price.
This component manages the navigation between different steps of the subscription process.
Template: app.component.html
<div class="steps-container">
<ng-container *ngIf="currentStep$ | async as currentStep">
<app-step1 *ngIf="currentStep === 1"></app-step1>
<app-step2 *ngIf="currentStep === 2"></app-step2>
<app-step3 *ngIf="currentStep === 3"></app-step3>
<app-summary *ngIf="currentStep === 4"></app-summary>
<app-thank-you *ngIf="currentStep === 5"></app-thank-you>
<button (click)="prevStep()" [disabled]="currentStep === 1">Previous</button>
<button (click)="nextStep()" [disabled]="currentStep === 4">Next</button>
</ng-container>
</div>