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

8 lines
221 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}
];