docs(toh): remove @Input decorator in part 5

This commit is contained in:
Foxandxss 2016-04-20 16:03:11 +02:00 committed by Naomi Black
parent 0c5ad7c3bc
commit e039c6f718
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
// #docregion
// #docregion v2
// #docregion import-oninit
import { Component, Input, OnInit } from 'angular2/core';
import { Component, OnInit } from 'angular2/core';
// #enddocregion import-oninit
// #docregion import-route-params
import { RouteParams } from 'angular2/router';
@ -27,7 +27,7 @@ import { HeroService } from './hero.service';
// #docregion implement
export class HeroDetailComponent implements OnInit {
// #enddocregion implement
@Input() hero: Hero;
hero: Hero;
// #docregion ctor
constructor(

View File

@ -1,4 +1,4 @@
import {Component, Input, OnInit} from 'angular2/core';
import {Component, OnInit} from 'angular2/core';
import {RouteParams} from 'angular2/router';
import {Hero} from './hero';
@ -10,7 +10,7 @@ import {HeroService} from './hero.service';
styleUrls: ['app/hero-detail.component.css']
})
export class HeroDetailComponent implements OnInit {
@Input() hero: Hero;
hero: Hero;
constructor(private _heroService: HeroService,
private _routeParams: RouteParams) {