ngx-cc-template
by Bao Nguyen | v1.0.4
ngx-cc-template is a Angular2+ form components which lets you generate forms easily.
npm i --save ngx-cc-template

ngx-cc-template

Build Status

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 Browser Stack