In the root module(app.module.ts
),
@NgModule({
declarations: [
AppComponent,
HomeComponent,
DirectoryComponent,
FilterPipe,
LoggingService
],
imports: [
FormsModule,
BrowserModule,
HttpClientModule,
routing
],
providers: [],
bootstrap: [AppComponent]
})
imports:[..]
indicate, root module importing other modules.
declarations:[..]
indicate, components/services/pipes/.. created and owned by root module.
What does providers
and bootstrap
signify?