πŸ“Š Angular
Q. How can you share data between sibling components in Angular?
  • (A) Using a shared service with RxJS Subject
  • (B) Using @Input and @Output decorators
  • (C) Using local variables only
  • (D) Direct DOM manipulation
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using a shared service with RxJS Subject

Explanation: Shared services with observables enable communication between siblings.

Explanation by: Mr. Dubey
Shared services with observables enable communication between siblings.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate