[](https://badge.fury.io/js/angular2-wizard) [](https://travis-ci.org/maiyaporn/angular2-wizard) [![Code Climate]
npm install angular2-wizardThis 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.
After installing the above dependencies, install angular2-wizard via:
``bash`
$ npm install angular2-wizard --save
Once you have installed the library, you can import it in AppModule of your application:
`typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { FormWizardModule } from 'angular2-wizard';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify the library as an import
FormWizardModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
`
Once your library is imported, you can use form-wizard and wizard-step components in your Angular application:
`xml`
Step1
Step2
Step3
Step4
Thank you! You have completed all the steps.
To generate all .js, .js.map and *.d.ts files:
`bash`
$ npm run tsc
To lint all *.ts files:
`bash``
$ npm run lint
MIT © Maiyaporn Phanich