Question · Angular course · Module 3: Modules
Imports vs Exports
What is the difference between 'imports' and 'exports' in @NgModule?
Answer options
- Imports are services, exports are components
- Imports are modules we need, exports are elements shared with others
- They are synonyms and work the same way
- Imports are file paths, exports are classes
You can check the correct answer by solving this task in the CodeWorlds game.