Question · Angular course · Module 3: Modules

The providers property

What is the 'providers' property in @NgModule used for?

Answer options

  • Declares components belonging to the module
  • Registers services available in the module (legacy approach)
  • Imports other modules
  • Defines the HTML templates of components

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