BlocPipe constructor

BlocPipe(
  1. ChangeDetectorRef _ref
)

A pipe which helps bind BlocBase (Bloc and Cubit) state changes to the presentation layer.

BlocPipe handles rendering the html element in response to new states. BlocPipe is very similar to AsyncPipe but is designed specifically for blocs.

<p>Current Count: {{ $pipe.bloc(counterBloc) }}</p>

See also:

  • Bloc for more information about how to make and use blocs.
  • Cubit for more information about how to make and use cubits.

Implementation

BlocPipe(this._ref);