Tero Parviainen ec4c1edff4 docs(upgrade): add E2E tests, update PhoneCat dependencies
closes #1070
Separates UpgradeAdapter reference guide examples from the PhoneCat tutorial examples
and update dependencies for phonecat upgrade examples
2016-04-11 12:40:09 -07:00

13 lines
237 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {Hero} from '../Hero';
export class MainController {
hero = new Hero(1, 'Windstorm');
heroes = [
new Hero(2, 'Superman'),
new Hero(3, 'Spiderman')
]
onDelete(hero:Hero) {
hero.name = 'Ex-' + hero.name;
}
}