0
0
llucycodes42
In this code, the NgModule is first imported. Next, the BrowserModule and HttpModule are imported. Finally, the AppComponent is declared and bootstrapped.
Library: angular
Shortcut: a_module_root
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
HttpModule,
],
declarations: [AppComponent],
bootstrap: [AppComponent],
})
export class AppModule { }