passing data to child component using DI

34 views
Skip to first unread message

prasana kumar

unread,
Sep 29, 2020, 9:28:48 AM9/29/20
to Angular and AngularJS discussion
Which is the preferred approach?

option1:  Angular parent component talks with service (DI) for data and passing the data to child components?

Option2: Each child component and parent component talk to the service for data ?


Kindly suggest which is the right approach to go for?

Fiza Khan

unread,
Oct 28, 2020, 7:28:39 AM10/28/20
to Angular and AngularJS discussion
I will suggest option1.
Reply all
Reply to author
Forward
0 new messages