35 lines
761 B
TypeScript
35 lines
761 B
TypeScript
|
// #docplaster
|
||
|
// #docregion whole-ngmodule
|
||
|
|
||
|
// imports
|
||
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
import { NgModule } from '@angular/core';
|
||
|
import { FormsModule } from '@angular/forms';
|
||
|
import { HttpModule } from '@angular/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,
|
||
|
HttpModule
|
||
|
],
|
||
|
providers: [],
|
||
|
bootstrap: [AppComponent]
|
||
|
})
|
||
|
export class AppModule { }
|
||
|
|
||
|
// #enddocregion whole-ngmodule
|