Skip to content

Commit c01ee5c

Browse files
committedOct 6, 2016
Update
This contains the files necessary for a certain presentation
1 parent ffd6441 commit c01ee5c

File tree

159 files changed

+29927
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+29927
-0
lines changed
 

‎1 - start/app/main.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import {SuperHero} from './superhero';
2+
3+
let wolverine = new SuperHero("Wolverine", "Healing Factor / Martial Arts / Adamantium Skeleton", "Logan");
4+
let deadpool = new SuperHero("Deadpool", "Extreme Healing Factor / Crazy improvisation", "Wade Wilson");
5+
6+
document.getElementById('header1').textContent = deadpool.saveVictim(wolverine.name);

‎1 - start/app/superhero.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export class SuperHero{
2+
constructor(public name: string, public power: string, public secretIdentity: string){
3+
SuperHero.NumberOfHeroes++;
4+
}
5+
static NumberOfHeroes = 0;
6+
7+
saveVictim(name: string):string{
8+
let temp = this.name + " has saved " + name;
9+
console.log(temp);
10+
return temp;
11+
}
12+
}

0 commit comments

Comments
 (0)