ngx-cc-template
v1.0.4
Published
ngx-cc-template is a Angular2+ form components which lets you generate forms easily.
Downloads
7
Readme
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