aboutsummaryrefslogtreecommitdiff
path: root/src/app/heroes/heroes.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/heroes/heroes.component.ts')
-rw-r--r--src/app/heroes/heroes.component.ts20
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 @@
1import { Component, OnInit } from '@angular/core';
2import { Hero } from '../hero';
3
4@Component({
5 selector: 'app-heroes',
6 templateUrl: './heroes.component.html',
7 styleUrls: ['./heroes.component.scss']
8})
9export class HeroesComponent implements OnInit {
10 hero: Hero ={
11 id: 1,
12 name: 'Windstorm'
13 };
14
15 constructor() { }
16
17 ngOnInit() {
18 }
19
20}