Question · Angular course · Module 3: Modules
Imports in a standalone component
Where does a standalone component declare its dependencies (e.g. CommonModule)?
Answer options
- In the 'imports' property of the @Component decorator
- In the declarations of a separate NgModule
- In the angular.json file
- In the component class constructor
You can check the correct answer by solving this task in the CodeWorlds game.