ngx-cc-template
ngx-cc-template is a Angular2+ form components which lets you generate forms easily.
npm i --save ngx-cc-template
- Version: 1.0.4
- GitHub:
- NPM: https://www.npmjs.com/package/ngx-cc-template
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
ngx-cc-template
ngx-cc-template is an Angular module for generating forms in your application.
Work still in progress - help will be appreciated. :)
Features
- generates correct angular form based on provided settings
- ...
Installation
npm install --save-dev ngx-cc-template
Usage
<ngx-cc-template [settings]="settings" (onSubmit)="onSubmit($event)"></ngx-cc-template>
Where settings look like:
settings = {
inputs: {
field: {
label: 'Field',
type: 'text',
},
},
}
and onSubmit:
onSubmit(form) {
this.items.push(form);
}
Future features
- custom classes
- custom buttons
- generating forms based on passed model
TODOs
- Docs
- Ghpages - better example site
- E2E tests - protractor
Thanks to
Thanks to Ly Tran, I used this repo as a point of start to create an angular2+ module.
Credits
Crossbrowser testing sponsored by Browser Stack