Form

grupojaque-ngx-commonsGlobals"lib/helpers/form/form.helper"

Form Helper

This module contains methods that directly interact with Reactive Forms

Index

Functions

Functions

controlsMarkAsTouched

controlsMarkAsTouched(form: FormGroup): void

Defined in lib/helpers/form/form.helper.ts:16

This function mark all controls like touched

Parameters:

NameTypeDescription
formFormGroupof type FormGroup

Returns: void


passwordMatch

passwordMatch(form: AbstractControl): object | null

Defined in lib/helpers/form/form.helper.ts:38

This function is selected to evaluate the confirmation of the assignment of a password (password is used in registration flows, password reset or modification of profile data), where the required name of these fields is password and confirmPassword

Parameters:

NameTypeDescription
formAbstractControlAbstractControl

Returns: object | null

Return a object null or an object with errors