Skip to main content
cngx-src documentation

CngxChartReconnecting

Directivev0.1.0

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

Import#

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

Description#

*cngxChartReconnecting slot - overrides the default subtle indicator shown when [connectionState] reports 'refreshing' (reconnecting). Overlaid with role="status" (polite); receives a CngxChartConnectionContext.

<cngx-chart [connectionState]="socket">
  <ng-template cngxChartReconnecting let-small="small">
    <span>{{ small ? 'Reconnecting' : 'Reconnecting to the live feed' }}</span>
  </ng-template>
</cngx-chart>

Metadata#

Dependencies#

TemplateRefinject()templateRef