13 lines
		
	
	
		
			237 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			237 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Hero } from './hero';
 | |
| 
 | |
| export class HeroesService {
 | |
|   heroes: Array<Hero> = [
 | |
|     { name: 'RubberMan', power: 'flexibility'},
 | |
|     { name: 'Tornado', power: 'Weather changer'}
 | |
|   ];
 | |
| 
 | |
|   getHeroes () {
 | |
|     return this.heroes;
 | |
|   }
 | |
| }
 |