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

  • (A) Using a shared service
  • (B) Using @Input and @Output
  • (C) Using local variables
  • (D) Using DOM manipulation
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using a shared service
Explanation: Services can act as data stores to share information across unrelated components.
Explanation by: Mr. Dubey
Services can act as data stores to share information across unrelated components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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