async Pipe
A pipe that subscribes to an Observable in the template and cleans up automatically.
What does async Pipe do?
The async pipe subscribes to an Observable in the template, shows its latest value, and unsubscribes automatically when the component goes away.
@if (weather$ | async; as weather) {
<p>{{ weather.temperature }}°</p>
}
Level: Journeyman · More Angular terms at this level
Updated