Place on any element - shows a global banner when the bound CngxAsyncState
transitions to error. Dismisses automatically on success or idle.
Only fires on actual transitions, not on initial idle state.
<div [cngxBannerOn]="connectionState" bannerId="net:offline" bannerError="You are offline. Changes will sync when reconnected."></div>
The async state to watch. Optional - when omitted, falls back to
CNGX_STATEFUL from an ancestor/self component. A bare cngxBannerOn
attribute is treated as "no input bound".