A

Admin • 833K Points
Coach

Q. How can you share data between unrelated components in Angular?

  • (A) Using a shared service with RxJS Subjects or BehaviorSubjects
  • (B) Using @Input and @Output
  • (C) Using local variables
  • (D) Direct DOM manipulation
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Services with observables enable communication between components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.