Compare commits
No commits in common. "620a97cc800d0f4c4fc9094170f58861f1c9f9f2" and "1a5f159a2259b9bc8546e1450b7b53f90c7625dd" have entirely different histories.
620a97cc80
...
1a5f159a22
|
@ -1,4 +0,0 @@
|
||||||
export interface Hero {
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
}
|
|
|
@ -1,3 +1 @@
|
||||||
<h2>{{hero.name | uppercase}} Details</h2>
|
<h2>{{hero}}</h2>
|
||||||
<div><span>id: </span>{{hero.id}}</div>
|
|
||||||
<div><span>name: </span>{{hero.name}}</div>
|
|
|
@ -1,14 +1,12 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Hero } from '../hero';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-heroes',
|
selector: 'app-heroes',
|
||||||
templateUrl: './heroes.component.html',
|
templateUrl: './heroes.component.html',
|
||||||
styleUrls: ['./heroes.component.css']
|
styleUrl: './heroes.component.css'
|
||||||
})
|
})
|
||||||
|
|
||||||
export class HeroesComponent {
|
export class HeroesComponent {
|
||||||
hero: Hero = {
|
hero = 'Windstorm';
|
||||||
id: 1,
|
|
||||||
name: 'Windstorm'
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue