Compare commits

..

No commits in common. "620a97cc800d0f4c4fc9094170f58861f1c9f9f2" and "1a5f159a2259b9bc8546e1450b7b53f90c7625dd" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -1,4 +0,0 @@
export interface Hero {
id: number;
name: string;
}

View File

@ -1,3 +1 @@
<h2>{{hero.name | uppercase}} Details</h2>
<div><span>id: </span>{{hero.id}}</div>
<div><span>name: </span>{{hero.name}}</div>
<h2>{{hero}}</h2>

View File

@ -1,14 +1,12 @@
import { Component } from '@angular/core';
import { Hero } from '../hero';
@Component({
selector: 'app-heroes',
templateUrl: './heroes.component.html',
styleUrls: ['./heroes.component.css']
styleUrl: './heroes.component.css'
})
export class HeroesComponent {
hero: Hero = {
id: 1,
name: 'Windstorm'
};
hero = 'Windstorm';
}