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.
Auf dieser Seite können Sie das Online-Video Angular Component Interaction | Shared Service | CodeWithSrini mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodeWithSrini 13 Juli 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9,506 Mal angesehen und es wurde von 99 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!