Skip to main content
cngx-src documentation

CngxChartConnectionError

Directivev0.1.0

projects/common/chart/chart/template-slots.ts

Import#

import { CngxChartConnectionError } from '@cngx/common/chart'

Description#

*cngxChartConnectionError slot - overrides the default banner shown when [connectionState] reports 'error' (connection lost). Overlaid on top of the data view with role="alert"; receives a CngxChartConnectionContext.

<cngx-chart [connectionState]="socket">
  <ng-template cngxChartConnectionError let-error>
    <span>Live feed lost: {{ error?.message }}</span>
  </ng-template>
</cngx-chart>

Metadata#

Dependencies#

TemplateRefinject()templateRef