node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »



This is an Angular2 Form Wizard component. Just like any form wizard. You can define steps and control how each step works. You can enable/disable navigation button based on validity of the current step. Currently, the component only support basic functionality. More features will come later.

You can checkout the demo below and see how to use it in the next section.

Initial Project

Esse projeto inicialmente começou a ser desenvolvido em:



  • Angular2 (tested with 2.3.1)
  • Bootstrap 4


After installing the above dependencies, install angular-wizard-form via:

$ npm install angular-wizard-form --save

How to use the component

Once you have installed the library, you can import it in AppModule of your application:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { FormWizardModule } from 'angular2-wizard';
  declarations: [
  imports: [
    // Specify the library as an import
  providers: [],
  bootstrap: [AppComponent]
export class AppModule { }

Once your library is imported, you can use form-wizard and wizard-step components in your Angular application:

  <wizard-step [title]="'Step1'" [isValid]="emailForm.form.valid" (onNext)="onStep1Next($event)">
    <form #emailForm="ngForm">
      <div class="form-group">
        <label for="exampleInputEmail1">Email address</label>
        <input type="email" class="form-control" id="exampleInputEmail1" name="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"
          [(ngModel)]="" required>
        <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  <wizard-step [title]="'Step2'" (onNext)="onStep2Next($event)">
  <wizard-step [title]="'Step3'" (onNext)="onStep3Next($event)">
  <wizard-step [title]="'Step4'" (onComplete)="onComplete($event)">
    <div [ngSwitch]="isCompleted">
      <div *ngSwitchDefault>
      <div *ngSwitchCase="true">
        <h4>Thank you! You have completed all the steps.</h4>



To generate all *.js, * and *.d.ts files:

$ npm run tsc

To lint all *.ts files:

$ npm run lint


  • Click title to navigate
  • Hide/Show navigation button
  • Disable visited steps after navigate to previous
  • Dynamically add/remove step


MIT © Bruno Caú