Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Playground for integrating JSONForms with Angular Material

Notifications You must be signed in to change notification settings

eclipsesource/jsonforms-angular-material-playground

Repository files navigation

This REPO is deprecated. Please use https://github.com/eclipsesource/jsonforms-angular-seed instead!

JsonformsAngularMaterialPlayground

JSONForm Angular playground.

Installation

Run npm ci to install the necessary dependencies.

Development server

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

Build

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

Running end-to-end tests

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

Customizations

For this showcase we hardcoded the schemas (schema.json, uischema.json) and the data (data.ts). You can replace them with your own or handle them completely dynamically.

We implemented three custom controls (custom.autocomplete.ts, lang.control.ts and data.control.ts). If you don't need them just remove them! See also store.ts where these custom renderers are registered.

In app.module.ts we customized the validation and executed a manual resolving step before handing the schemas over to JSON Forms. These steps are optional and can be skipped if needed.

About

Playground for integrating JSONForms with Angular Material

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published