Q. Which service is used to pass data between components that do not have a parent-child relationship?
β
Correct Answer: (A)
Shared service with RxJS Subjects or BehaviorSubjects
Explanation: Shared services using RxJS allow components to communicate without direct relation.