Last active
June 3, 2019 07:48
-
-
Save kunjee17/1400ecf366c199a3a253004fe549b295 to your computer and use it in GitHub Desktop.
NgModule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; | |
import { ItemDirective } from './item.directive'; | |
// @NgModule decorator with its metadata | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
ItemDirective | |
], | |
imports: [ | |
BrowserModule, | |
FormsModule, | |
HttpClientModule | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment