projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6: Get Data from a Server
[examples/angular-tour-of-heroes]
/
src
/
app
/
app.module.ts
diff --git
a/src/app/app.module.ts
b/src/app/app.module.ts
index
bc5d602
..
b76b39d
100644
(file)
--- a/
src/app/app.module.ts
+++ b/
src/app/app.module.ts
@@
-1,18
+1,28
@@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
+import { AppRoutingModule } from './app-routing.module';
import { FormsModule } from '@angular/forms';
import { FormsModule } from '@angular/forms';
+import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { HeroesComponent } from './heroes/heroes.component';
import { AppComponent } from './app.component';
import { HeroesComponent } from './heroes/heroes.component';
+import { HeroDetailComponent } from './hero-detail/hero-detail.component';
+import { MessagesComponent } from './messages/messages.component';
+import { DashboardComponent } from './dashboard/dashboard.component';
@NgModule({
declarations: [
AppComponent,
@NgModule({
declarations: [
AppComponent,
- HeroesComponent
+ HeroesComponent,
+ HeroDetailComponent,
+ MessagesComponent,
+ DashboardComponent
],
imports: [
BrowserModule,
],
imports: [
BrowserModule,
- FormsModule
+ AppRoutingModule,
+ FormsModule,
+ HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
],
providers: [],
bootstrap: [AppComponent]