node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

ng2-tools

Ng2Tools

The scope of this project is to provide a generic definition for a form component which can be used to generate fast forms inside a project Also a page data service is written called pageStreams which has the ability to check on each data update if the whole page contains changes

Upcoming features

Feature State
Autocomplete component implemented, README
Select / Select with search component select is ready from angular material, waiting for angular material to extend it README
Multiselect / Multiselect with search component used from md2 README until angular material will add multiselect
Date picker/ time picker/ date time picker used from md2 README until angular material will add date time picker
Generic form component work in prigress README
Integration for the components in the generic-form All components are integrated to generic-form
Application example work in progress
Extend generic-form with user created components which can be added to the current workflow not started
Create npm package with the library not started
Add testing for all components not started

Project installation

Run npm install Run npm run ng upgreade -> Select no on all options

Development server

Run npm ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run npm ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

Run npm ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run npm ng test to execute the unit tests via Karma.

Running end-to-end tests

Run npm ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Deploying to Github Pages

Run npm ng github-pages:deploy to deploy to Github Pages.

Further help

To get more help on the angular-cli use npm ng help or go check out the Angular-CLI README.