diff options
Diffstat (limited to 'src/app/heroes/heroes.component.ts')
-rw-r--r-- | src/app/heroes/heroes.component.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/app/heroes/heroes.component.ts b/src/app/heroes/heroes.component.ts new file mode 100644 index 0000000..0f72ae9 --- /dev/null +++ b/src/app/heroes/heroes.component.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | import { Component, OnInit } from '@angular/core'; | ||
2 | import { Hero } from '../hero'; | ||
3 | |||
4 | @Component({ | ||
5 | selector: 'app-heroes', | ||
6 | templateUrl: './heroes.component.html', | ||
7 | styleUrls: ['./heroes.component.scss'] | ||
8 | }) | ||
9 | export class HeroesComponent implements OnInit { | ||
10 | hero: Hero ={ | ||
11 | id: 1, | ||
12 | name: 'Windstorm' | ||
13 | }; | ||
14 | |||
15 | constructor() { } | ||
16 | |||
17 | ngOnInit() { | ||
18 | } | ||
19 | |||
20 | } | ||