0.0.9 • Published 4 years ago

tf-ng-form-components v0.0.9

Weekly downloads
37
License
-
Repository
-
Last release
4 years ago

tf-ng-form-components

Angular interfaces for https://www.npmjs.com/package/tf-core-components components, enabling the data to flow both ways between Transform form components and angular forms.

Out of the box, we can not use the angular formControl or ngModel directive directly on a transform 'form' component like we do with native form elements.

This package provides a wrapper for each tf form component. These wrappers should be installed once you install the tf-core-components and contain the following selectors;

tf-ng-input

tf-ng-textarea

tf-ng-select

tf-ng-checkbox

tf-ng-radio-group

Install

npm i tf-ng-form-components

Add to your Angular Application

Once installed, we just add the TfNgFormComponentsModule to the app.module like any other additional module (for example FormsModule);

import { TfNgFormComponentsModule } from 'tf-ng-form-components'

and add the TfNgFormComponentsModule to the imports;

imports: [ TfNgFormComponentsModule, ... ]

Using the components

using the TfNgFormComponentsModule is as simple as just accessing the tf-ng-input component instead of tf-input in our ngForms

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago