Angular: Role of AppModule and Component Declaration

Của willnguyen trong Angular 8

Transform component to something else by Declaration @NgModule.
  • bootstrap: ware of these components when application get started.
  • declaration: tell Angular know these components exist (Angular does not auto load them), using them by selectors in current component's template.
  • imports: import other modules to this module.
  • import: tell Angular know where to find them.