@govom/angular
v0.1.0
Published
Angular Forms compatibility layer for Oman GUP web components library
Downloads
46
Readme
Angular Forms directives for the GUP component library
This package contains directives meant as a compatibility layer for the form-based web components exported by @govom/components package to go along with Angular forms API.
Upon importing the directives via import { GupFormsCompatModule } from '@govom/angular'; these web components can be used with both Reactive Forms API and template-driven forms:
gup-dropdown-fieldgup-checkboxgup-radio-button-groupgup-file-uploadgup-toggle
gup-input-field and gup-textarea-field can be made compatible with Reactive Forms by attaching a core ngDefaultControl directive to them (see the Angular docs).
Demo app
~~The functionality of the compatibility layer can be verified by running a test Angular app with ng serve or npm start in the package folder or npx nx run @govom/angular:start in the project root.~~
The demo app has been removed, please use a separate application to test (see the respective Storybook page).
