{"id":15295855,"url":"https://github.com/maiyaporn/angular2-wizard","last_synced_at":"2025-04-06T07:10:52.086Z","repository":{"id":57179850,"uuid":"80798966","full_name":"maiyaporn/angular2-wizard","owner":"maiyaporn","description":"Angular2 - Form Wizard Component","archived":false,"fork":false,"pushed_at":"2020-11-17T16:20:50.000Z","size":21,"stargazers_count":117,"open_issues_count":46,"forks_count":119,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T06:08:09.841Z","etag":null,"topics":["angular2","angular2-component","angular2-wizard","bootstrap4","form-wizard","wizard"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maiyaporn.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-03T05:07:17.000Z","updated_at":"2025-01-16T17:47:06.000Z","dependencies_parsed_at":"2022-09-14T03:30:51.072Z","dependency_job_id":null,"html_url":"https://github.com/maiyaporn/angular2-wizard","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiyaporn%2Fangular2-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiyaporn%2Fangular2-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiyaporn%2Fangular2-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiyaporn%2Fangular2-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maiyaporn","download_url":"https://codeload.github.com/maiyaporn/angular2-wizard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445669,"owners_count":20939958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular2","angular2-component","angular2-wizard","bootstrap4","form-wizard","wizard"],"created_at":"2024-09-30T18:08:25.395Z","updated_at":"2025-04-06T07:10:52.045Z","avatar_url":"https://github.com/maiyaporn.png","language":"JavaScript","readme":"# angular2-wizard\n[![npm version](https://badge.fury.io/js/angular2-wizard.svg)](https://badge.fury.io/js/angular2-wizard)\n[![Build Status](https://travis-ci.org/maiyaporn/angular2-wizard.svg?branch=master)](https://travis-ci.org/maiyaporn/angular2-wizard)\n[![Code Climate](https://codeclimate.com/github/maiyaporn/angular2-wizard/badges/gpa.svg)](https://codeclimate.com/github/maiyaporn/angular2-wizard)\n[![Test Coverage](https://codeclimate.com/github/maiyaporn/angular2-wizard/badges/coverage.svg)](https://codeclimate.com/github/maiyaporn/angular2-wizard/coverage)\n\nThis 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.\n\nYou can checkout the demo below and see how to use it in the next section.\n\n## Demo\nhttps://maiyaporn.github.io/angular2-wizard-demo/\n\n## Dependencies\n- Angular2 (tested with 2.3.1)\n- Bootstrap 4\n\n## Installation\n\nAfter installing the above dependencies, install angular2-wizard via:\n\n```bash\n$ npm install angular2-wizard --save\n```\n\n## How to use the component\n\nOnce you have installed the library, you can import it in `AppModule` of your application:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppComponent } from './app.component';\n\n// Import your library\nimport { FormWizardModule } from 'angular2-wizard';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    // Specify the library as an import\n    FormWizardModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce your library is imported, you can use form-wizard and wizard-step components in your Angular application:\n\n```xml\n\u003cform-wizard\u003e\n  \u003cwizard-step [title]=\"'Step1'\" [isValid]=\"emailForm.form.valid\" (onNext)=\"onStep1Next($event)\"\u003e\n    \u003ch1\u003eStep1\u003c/h1\u003e\n    \u003cform #emailForm=\"ngForm\"\u003e\n      \u003cdiv class=\"form-group\"\u003e\n        \u003clabel for=\"exampleInputEmail1\"\u003eEmail address\u003c/label\u003e\n        \u003cinput type=\"email\" class=\"form-control\" id=\"exampleInputEmail1\" name=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" placeholder=\"Enter email\"\n          [(ngModel)]=\"data.email\" required\u003e\n        \u003csmall id=\"emailHelp\" class=\"form-text text-muted\"\u003eWe'll never share your email with anyone else.\u003c/small\u003e\n      \u003c/div\u003e\n    \u003c/form\u003e\n  \u003c/wizard-step\u003e\n  \u003cwizard-step [title]=\"'Step2'\" (onNext)=\"onStep2Next($event)\"\u003e\n    \u003ch1\u003eStep2\u003c/h1\u003e\n  \u003c/wizard-step\u003e\n  \u003cwizard-step [title]=\"'Step3'\" (onNext)=\"onStep3Next($event)\"\u003e\n    \u003ch1\u003eStep3\u003c/h1\u003e\n  \u003c/wizard-step\u003e\n  \u003cwizard-step [title]=\"'Step4'\" (onComplete)=\"onComplete($event)\"\u003e\n    \u003cdiv [ngSwitch]=\"isCompleted\"\u003e\n      \u003cdiv *ngSwitchDefault\u003e\n        \u003ch1\u003eStep4\u003c/h1\u003e\n      \u003c/div\u003e\n      \u003cdiv *ngSwitchCase=\"true\"\u003e\n        \u003ch4\u003eThank you! You have completed all the steps.\u003c/h4\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/wizard-step\u003e\n\u003c/form-wizard\u003e\n```\n\n## Document\nhttps://github.com/maiyaporn/angular2-wizard/wiki\n\n## Development\n\nTo generate all `*.js`, `*.js.map` and `*.d.ts` files:\n\n```bash\n$ npm run tsc\n```\n\nTo lint all `*.ts` files:\n\n```bash\n$ npm run lint\n```\n\n## Improvement\n- [x] Click title to navigate\n- [x] Hide/Show navigation button\n- [ ] Disable visited steps after navigate to previous\n- [ ] Dynamically add/remove step\n\n\n## License\n\nMIT © [Maiyaporn Phanich](mailto:p.maiyaporn@gmail.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiyaporn%2Fangular2-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaiyaporn%2Fangular2-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiyaporn%2Fangular2-wizard/lists"}