26 lines
839 B
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
2016-07-12 18:14:13 -07:00
import { HeroComponent } from './hero.component.3';
import { HeroDetailComponent } from './hero-detail.component';
import { HeroListComponent } from './hero-list.component';
import { HighlightDirective } from './highlight.directive';
import { routing } from './hero.routing.3';
2016-07-12 18:14:13 -07:00
// TODO: Remove in RC 6
import { HeroService } from './hero.service';
2016-07-12 18:14:13 -07:00
// #docregion class
@NgModule({
imports: [ CommonModule, FormsModule, routing ],
// TODO: Remove in RC 6
providers: [ HeroService ],
2016-07-12 18:14:13 -07:00
declarations: [
HeroComponent, HeroDetailComponent, HeroListComponent,
HighlightDirective
]
})
export class HeroModule { }
2016-07-12 18:14:13 -07:00
// #enddocregion class