1 import { BrowserModule } from '@angular/platform-browser';
2 import { NgModule } from '@angular/core';
3 import { AppRoutingModule } from './app-routing.module';
4 import { FormsModule } from '@angular/forms';
5 import { HttpClientModule } from '@angular/common/http';
7 import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
8 import { InMemoryDataService } from './in-memory-data.service';
10 import { AppComponent } from './app.component';
11 import { HeroesComponent } from './heroes/heroes.component';
12 import { HeroDetailComponent } from './hero-detail/hero-detail.component';
13 import { MessagesComponent } from './messages/messages.component';
14 import { DashboardComponent } from './dashboard/dashboard.component';
15 import { HeroSearchComponent } from './hero-search/hero-search.component';
32 // The HttpClientInMemoryWebApiModule module intercepts HTTP requests
33 // and returns simulated server responses.
34 // Remove it when a real server is ready to receive requests.
35 HttpClientInMemoryWebApiModule.forRoot(
36 InMemoryDataService, { dataEncapsulation: false }
40 bootstrap: [AppComponent]
42 export class AppModule { }