Pass data to child component using Async Pipe in Angular

Image for post
Image for post

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.

Written by

Writing about Angular,JavaScript and Type Script related articles. Please follow, clap stories to motivate us writing more!

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