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

9 lines
203 B
TypeScript

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