kit-form-touch

API

[class] KitFormTouchModule

@NgModule

Exports:[ KitFormTouchDirective, ]
Providers:[]

[class] KitFormTouchDirective

@Directive

Selector:'[kitFormTouch]'

Touch all form's fields for proper errors displaying.

Usage

Add kitFormTouch directive to submit button:

<form ...>
  ...
  <button kitFormTouch ...>Submit</button>
</form>

Example

  • collection:form - demo

Members

SignatureDescription
get ngForm(): NgForm | undefined
formTouchAll(form: FormGroup, revalidate?: boolean)

Touches all FormGroup controls and controls in nested FormGroups at any level.