app.module.ts
823 Bytes
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
//Http Service
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { HeroDetailComponent } from './hero-detail/hero-detail.component';
// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService } from './services/mocks/in-memory-data.service';
@NgModule({
imports: [ BrowserModule ,
//Http Service
HttpModule,
FormsModule,
InMemoryWebApiModule.forRoot(InMemoryDataService)],
declarations: [ AppComponent,
HeroDetailComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }