Skip to main content
cngx-src documentation

CngxFailed

Directivev0.1.0WCAG AA

projects/common/interactive/async-click/async-status-templates.ts

Import#

import { CngxFailed } from '@cngx/common/interactive'

Description#

Template shown after an async action fails (for feedbackDuration ms). The implicit template context provides the error value.

<ng-template cngxFailed let-err>Failed: {{ err }}</ng-template>

https://cngxjs.github.io/cngx/examples/#/ui/action-button/async-button/random-outcome https://cngxjs.github.io/cngx/examples/#/ui/action-button/async-button/string-labels https://cngxjs.github.io/cngx/examples/#/ui/action-button/async-button/template-slots

Metadata#

Dependencies#

TemplateRefinject()templateRef