Another way to share data between components is via a common shared service.
Usually in the real world, we will be passing data with multiple components hierarchy, that has no direct connection with parent or child components.
And keeping Angular’s reactive nature in mind, there is always RxJS to overcome this scenario.
RxJS offers two types of Observable one is Subject and the other one is BehaviourSubject.
On this page of the site you can watch the video online Angular Component Interaction | Shared Service | CodeWithSrini with a duration of hours minute second in good quality, which was uploaded by the user CodeWithSrini 13 July 2020, share the link with friends and acquaintances, this video has already been watched 9,506 times on youtube and it was liked by 99 viewers. Enjoy your viewing!