angular-cn/modules/angular2/test/change_detection/iterable.ts

9 lines
206 B
TypeScript

import {List} from 'angular2/src/facade/collection';
export class TestIterable {
list: List<number>;
constructor() { this.list = []; }
[Symbol.iterator]() { return this.list[Symbol.iterator](); }
}