Skip to content

test driven angular form with reusable model driven components

License

Notifications You must be signed in to change notification settings

willi84/angular-forms

Repository files navigation

AngularForms

This project was generated with Angular CLI version 1.6.8.

Goal

This project should provide a simple but powerful real world solution of reactive forms in Angular, where are used reusable and configurable components. It should also be test-driven. 🙌

Status

Build Status BrowserStack Status

Demo

https://willi84.github.io/angular-forms/

Credits

To my company STRATO and to Travis and Browserstack for supporting OpenSource projects.

Folder structure

  • _shared: every building block for a component like input/textarea/select and status message
  • framework: reusable components
  • features: helping services and validators
├── app
│   ├── _shared/
│   │   ├── <basic for component>
│   ├── framework/
│   │   ├── <reusable component>
│   ├── features/
│   │   ├── services
│   │   └── validators
│   ├── app.module.ts
│   └── contact.component (root component)
├── environments
├── utils
└── index.html

App Structure

App Structure

Content

setup

  • node 8.9.1
  • typescript

Development server

Run 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 ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run 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 ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

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

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Robert Willemelis.

This is free software using the MIT license.

ACKNOWLEDGEMENT

This software has been developed with support from STRATO. In German: Diese Software wurde mit Unterstützung von STRATO entwickelt.

Credits

About

test driven angular form with reusable model driven components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published