angular-cn/public/docs/_examples/pipes/ts/app/heroes.ts

7 lines
235 B
TypeScript

export interface Flyer { canFly: boolean }
export const HEROES = [
{"name": "Windstorm", "canFly": true},
{"name": "Bombasto", "canFly": false},
{"name": "Magneto", "canFly": false},
{"name": "Tornado", "canFly": true}
];