Question · Angular course · Module 1: Introduction to Angular

Standalone vs NgModule

What does the flag 'standalone: true' mean in the @Component decorator?

Answer options

  • The component works only locally
  • The component does not require declaration in an NgModule and manages its own dependencies
  • The component cannot have children
  • The component is hidden from others
Show the answer

Correct answer:

  • The component does not require declaration in an NgModule and manages its own dependencies