Pass data to child component using Async Pipe in Angular

We might fond of using Async Pipe in our applications as they do have the best benefits. Recently, I was trying to use my async data to the child component and want to use it in my child component.

Here is the approach which I found quite helpful.

Parent Component

Parent Component HTML

Child Component

References:

Looking for job change.. would like to find out the latest interview questions asked for Angular? Check out my series below.

Top Writer in Writing | Humor: Writing about Angular, JavaScript, and TypeScript related articles.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store