Write a code share data from the parent to child component in angular
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aravind GovindarajRank #430 · 5.8K reputationPosted Oct 22, 2022, 1:52 PM EDT
You can go this for two approach
1. Create a property in child component and pass the data from parent to child using that property
2. Use state management, to consume the data directly in required component. This is recommended approach for extendsjin and maintenance....
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 27, 2022, 11:23 AM EDT
https://www.c-sharpcorner.com/article/pass-data-from-parent-to-child-component-in-angular-8/