Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@ever-co/angular2-wizard
Advanced tools
[![npm version](https://badge.fury.io/js/angular2-wizard.svg)](https://badge.fury.io/js/angular2-wizard) [![Build Status](https://travis-ci.org/maiyaporn/angular2-wizard.svg?branch=master)](https://travis-ci.org/maiyaporn/angular2-wizard) [![Code Climate]
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.
https://maiyaporn.github.io/angular2-wizard-demo/
After installing the above dependencies, install angular2-wizard via:
$ npm install @ever-co/angular2-wizard --save
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';
@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:
<form-wizard>
<wizard-step [title]="'Step1'" [nextText]="'Next'" [previousText]="'Previous'" [doneText]="'Done'" [isValid]="emailForm.form.valid" (onNext)="onStep1Next($event)">
<h1>Step1</h1>
<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)]="data.email" required>
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
</form>
</wizard-step>
<wizard-step [title]="'Step2'" (onNext)="onStep2Next($event)">
<h1>Step2</h1>
</wizard-step>
<wizard-step [title]="'Step3'" (onNext)="onStep3Next($event)">
<h1>Step3</h1>
</wizard-step>
<wizard-step [title]="'Step4'" (onComplete)="onComplete($event)">
<div [ngSwitch]="isCompleted">
<div *ngSwitchDefault>
<h1>Step4</h1>
</div>
<div *ngSwitchCase="true">
<h4>Thank you! You have completed all the steps.</h4>
</div>
</div>
</wizard-step>
</form-wizard>
https://github.com/maiyaporn/angular2-wizard/wiki
To generate all *.js
, *.js.map
and *.d.ts
files:
$ npm run tsc
To lint all *.ts
files:
$ npm run lint
MIT © Maiyaporn Phanich
FAQs
[![npm version](https://badge.fury.io/js/angular2-wizard.svg)](https://badge.fury.io/js/angular2-wizard) [![Build Status](https://travis-ci.org/maiyaporn/angular2-wizard.svg?branch=master)](https://travis-ci.org/maiyaporn/angular2-wizard) [![Code Climate]
The npm package @ever-co/angular2-wizard receives a total of 17 weekly downloads. As such, @ever-co/angular2-wizard popularity was classified as not popular.
We found that @ever-co/angular2-wizard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.