Introduction
In this article, we are going to learn how to use an Async Pipe in Angular applications.
What Is Async Pipe?
Async Pipe is an impure pipe that automatically subscribes to an observable to emit the latest values. It not only subscribes to an observable, but it also subscribes to a promise and calls the then
method. When the components get destroyed, it automatically unsubscribes them to reduce memory leaks.