Skip to main content
cngx-src documentation

CngxFieldErrorContext

Interface

projects/forms/field/field-errors.component.ts

Import#

import { CngxFieldErrorContext } from '@cngx/forms/field'

Description#

Template context type for CngxFieldErrors custom templates.

Index#

Instance Properties#

$implicit#string

Resolved error message (also available as implicit let-msg).

error#unknown

The raw ValidationError object from Signal Forms.

Whether this is the first error.

index#number

Zero-based index of this error in the list.

The error kind (e.g. 'required', 'email', 'minLength').

Whether this is the last error.

message#string

Resolved error message from the registry.