What is the significance of the declarations array in an Angular module?

  • To configure route paths
  • To declare components in the module
  • To define component dependencies
  • To set up HTTP interceptors
The declarations array in an Angular module is used to declare components that are part of the module. This is important for Angular to know which components are available within the module.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *