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.
Sur cette page du site, vous pouvez voir la vidéo en ligne Angular Component Interaction | Shared Service | CodeWithSrini durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeWithSrini 13 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,506 fois et il a aimé 99 téléspectateurs. Bon visionnage!