A

Admin • 828.70K Points
Coach

Q. How do you share data between unrelated components?

  • (A) Using a shared service with observables
  • (B) Using `@Input()`
  • (C) Using `@Output()`
  • (D) Using `ngModel`
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
A shared service allows communication between components that don't share a parent-child relationship.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.