mode_edit codeAPI / @angular/commonNgForOfContextlinkclass 稳定class NgForOfContext<T> { constructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number) $implicit: T ngForOf: NgIterable<T> index: number count: number get first: boolean get last: boolean get even: boolean get odd: boolean }构造函数linkconstructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number)参数$implicitType: T.ngForOfType: NgIterable.indexType: number.countType: number.属性link属性名类型说明$implicitT声明于构造函数中ngForOfNgIterable<T>声明于构造函数中indexnumber声明于构造函数中countnumber声明于构造函数中firstboolean只读lastboolean只读evenboolean只读oddboolean只读