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.
In questa pagina del sito puoi guardare il video online Angular Component Interaction | Shared Service | CodeWithSrini della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeWithSrini 13 luglio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,506 volte e gli è piaciuto 99 spettatori. Buona visione!