+1 vote
in Angular by
Explain Modules in Angular 2.

1 Answer

0 votes
by

Modules are used in Angular JS to put logical boundaries in your application. Hence, instead of coding everything into one application, you can instead build everything into separate modules to separate the functionality of your application. A module is made up of the following parts −

  • Bootstrap array − This is used to tell Angular JS which components need to be loaded so that its functionality can be accessed in the application. Once you include the component in the bootstrap array, you need to declare them so that they can be used across other components in the Angular JS application.
  • Export array − This is used to export components, directives, and pipes which can then be used in other modules.
  • Import array − Just like the export array, the import array can be used to import the functionality from other Angular JS modules.

Related questions

+1 vote
asked Jan 15, 2020 in Angular by rahuljain1
+1 vote
asked Jan 24, 2022 in Angular by sharadyadav1986
...