mirror of
https://github.com/angular/angular.git
synced 2026-12-06 05:09:14 -05:00
14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
// #docregion
|
|
export interface Hero {
|
|
id: number;
|
|
name: string;
|
|
emotion?: string;
|
|
}
|
|
|
|
export const heroes: Hero[] = [
|
|
{ id: 1, name: 'Dr. Nice', emotion: 'happy'},
|
|
{ id: 2, name: 'RubberMan', emotion: 'sad' },
|
|
{ id: 3, name: 'Windstorm', emotion: 'confused' },
|
|
{ id: 4, name: 'Magneta'}
|
|
];
|