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.
Nesta página do site você pode assistir ao vídeo on-line Angular Component Interaction | Shared Service | CodeWithSrini duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeWithSrini 13 Julho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 9,506 vezes e gostou 99 espectadores. Boa visualização!