ngx-cc-template
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i ngx-cc-template

Weekly Downloads

4

Version

1.0.4

License

MIT

Last publish

Collaborators

  • lytk
  • baonguyenyam