Angular

Angular

What is the purpose of the async pipe?

The async pipe automatically subscribes to observables and promises, returning the latest value and unsubscribing when the component is destroyed.

<p>{{ data$ | async }}</p>
1 / 25