Question · Angular course · Module 5: Services and DI

Sharing state between components

According to the lesson, how can components communicate and share state?

Answer options

  • Through a shared service that holds state in signals
  • Through global window variables
  • By copying HTML templates
  • It is impossible in Angular

You can check the correct answer by solving this task in the CodeWorlds game.