Q. Which service is used to pass data between components that do not have a parent-child relationship?

  • (A) Shared service with RxJS Subjects or BehaviorSubjects
  • (B) @Input and @Output decorators
  • (C) Router parameters
  • (D) Direct DOM manipulation
πŸ’¬ Discuss
βœ… Correct Answer: (A) Shared service with RxJS Subjects or BehaviorSubjects
Explanation: Shared services using RxJS allow components to communicate without direct relation.
Explanation by: Mr. Dubey
Shared services using RxJS allow components to communicate without direct relation.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
66
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate