Bird
0
0

Which array in an Angular module is used to list components that belong to that module?

easy📝 Conceptual Q2 of 15
Angular - Modules
Which array in an Angular module is used to list components that belong to that module?
Aimports
Bproviders
Cexports
Ddeclarations
Step-by-Step Solution
Solution:
  1. Step 1: Identify the purpose of declarations

    The declarations array lists components, directives, and pipes that belong to the module.
  2. Step 2: Differentiate from imports, exports, and providers

    Imports bring in other modules, exports share parts with other modules, and providers register services.
  3. Final Answer:

    declarations -> Option D
  4. Quick Check:

    declarations = module's own components [OK]
Quick Trick: Declarations list module's components [OK]
Common Mistakes:
  • Confusing declarations with imports
  • Thinking providers list components
  • Mixing exports with declarations

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes