Skip to main content
cngx-src documentation

CngxStepErrorContext

Interface

projects/common/stepper/slots/step-error.directive.ts

Referenced by#

Import#

import { CngxStepErrorContext } from '@cngx/common/stepper'

Description#

Context passed to the *cngxStepError template. Renders the validation-error reason for a step in the error state - sibling of the commit-channel *cngxStepRejection slot. The two channels stay distinct: rejection decorates the step a commit rolled back FROM; this slot surfaces the per-step validation message.

message resolves the direct [error] string > the first aggregator label > the i18n errored status phrase, so a template that renders {{ message }} always shows a non-empty reason. errorLabels / announcement expose the richer aggregator surface for consumers that want a list or the full SR phrase.

Index#

Instance Properties#

announcement#string
Readonly

Aggregator SR announcement phrase, or an empty string when none.

errorLabels#unknown
Readonly

Aggregator error labels, or an empty array when none.

message#string
Readonly

Resolved error reason (direct [error] string > aggregator label > i18n).

Readonly

The errored step node carrying id / label / state signals.