An open API service indexing awesome lists of open source software.

https://github.com/shhdharmen/reusable-material-form

It is possible to create custom form field controls that can be used inside <mat-form-field>. This can be useful if you need to create a component that shares a lot of common behavior with a form field, but adds some additional logic. For example in this guide I have created an address form and hook it up to work with <mat-form-field>.
https://github.com/shhdharmen/reusable-material-form

angular angular-forms angular-material angular-material-forms css html mat-cards mat-form-field typescript

Last synced: about 2 months ago
JSON representation

It is possible to create custom form field controls that can be used inside <mat-form-field>. This can be useful if you need to create a component that shares a lot of common behavior with a form field, but adds some additional logic. For example in this guide I have created an address form and hook it up to work with <mat-form-field>.

Awesome Lists containing this project

README

        

# Creating a custom form field control group using Angular Material

It is possible to create custom form field controls that can be used inside ``. This can be useful if you need to create a component that shares a lot of common behavior with a form field, but adds some additional logic.

For example in this guide I have created an address form and hook it up to work with ``.

```html




Shipping Information







Submit

```

The code for `` is present at [src\app\shared\address-form](https://github.com/shhdharmen/reusable-material-form/tree/main/src/app/shared/address-form).