A

Admin • 802.91K Points
Coach

Q. Which method in Angular service is commonly used to share data across components?

  • (A) Using a BehaviorSubject or Subject
  • (B) Using ngOnInit
  • (C) Using EventEmitter only
  • (D) Using Renderer2
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Subjects allow multicasting data changes across subscribers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.