projects/common/chart/chart/template-slots.ts
import { CngxChartConnectionError } from '@cngx/common/chart'
*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.
*cngxChartConnectionError
[connectionState]
'error'
role="alert"
<cngx-chart [connectionState]="socket"> <ng-template cngxChartConnectionError let-error> <span>Live feed lost: {{ error?.message }}</span> </ng-template> </cngx-chart>
ng-template[cngxChartConnectionError]
TemplateRef