3
Answers

pass data from parent to multiple child views at a time in angular

I had asked question in interview like how to pass data from parent component to multiple child components at a time?

I know that we can use the @Input decorator in child component to fetch data from parent component. However not sure

to fetch data from parent to all child components of that parent component at a time. I provided the answer like repeat the same procedure to other child components. Can anyone please explain in details? 

Answers (3)