I'm working on angular 5. I have one array of objects on parent component which I need to show in child component, If any value gets changed in that array of object, I want parent component's value should also be updated. Now My question is, Angular provides 3 ways for component intrection.
- @Input @output decorators
- @viewchild decorator
- Using Services
Which One is more Efficient? Which is best approach In my case? or In general parent child data sharing?