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
4: Add Services
[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
f657163
..
c84535d
100644
(file)
--- a/
src/app/app.module.ts
+++ b/
src/app/app.module.ts
@@
-1,14
+1,22
@@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
+import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.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';
@NgModule({
declarations: [
@NgModule({
declarations: [
- AppComponent
+ AppComponent,
+ HeroesComponent,
+ HeroDetailComponent,
+ MessagesComponent
],
imports: [
],
imports: [
- BrowserModule
+ BrowserModule,
+ FormsModule
],
providers: [],
bootstrap: [AppComponent]
],
providers: [],
bootstrap: [AppComponent]