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.
На этой странице сайта вы можете посмотреть видео онлайн Angular Component Interaction | Shared Service | CodeWithSrini длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CodeWithSrini 13 Июль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9,506 раз и оно понравилось 99 зрителям. Приятного просмотра!