X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=blobdiff_plain;f=src%2Fapp%2Fheroes%2Fheroes.component.ts;h=2bb7a695958b9f14edc0a06de70043f212999c73;hp=dd46908615ccee92a0a4dc01a6967484ef429804;hb=660221eb935d32c78466b125f1b83eb87b8dab31;hpb=45572edb5f831a6e05185eb1d45e255c8d6666fd diff --git a/src/app/heroes/heroes.component.ts b/src/app/heroes/heroes.component.ts index dd46908..2bb7a69 100644 --- a/src/app/heroes/heroes.component.ts +++ b/src/app/heroes/heroes.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { Hero } from '../hero'; +import { HEROES } from '../mock-heroes'; @Component({ selector: 'app-heroes', @@ -8,6 +9,8 @@ import { Hero } from '../hero'; }) export class HeroesComponent implements OnInit { + heroes = HEROES; + hero: Hero = { id: 1, name: 'Windstorm',