BlocPipe class
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:
- Annotations
-
- @Pipe('bloc', pure: false)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
BlocBase? bloc) → dynamic - Angular invokes the transform method with the value of a binding as the first argument, and any parameters as the second argument in list form.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited