35 lines
780 B
TypeScript
35 lines
780 B
TypeScript
// #docplaster
|
|
// #docregion whole-ngmodule
|
|
|
|
// imports
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
import { AppComponent } from './app.component';
|
|
// #docregion directive-import
|
|
import { ItemDirective } from './item.directive';
|
|
// #enddocregion directive-import
|
|
|
|
|
|
// @NgModule decorator with its metadata
|
|
@NgModule({
|
|
// #docregion declarations
|
|
declarations: [
|
|
AppComponent,
|
|
ItemDirective
|
|
],
|
|
// #enddocregion declarations
|
|
imports: [
|
|
BrowserModule,
|
|
FormsModule,
|
|
HttpClientModule
|
|
],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|
|
|
|
// #enddocregion whole-ngmodule
|