NgForOfContext

      
      class NgForOfContext<T> {
  constructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number)
  $implicit: T
  ngForOf: NgIterable<T>
  index: number
  count: number
  first: boolean
  last: boolean
  even: boolean
  odd: boolean
}
    

构造函数

constructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number)
      
      constructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number)
    
参数
$implicit T
ngForOf NgIterable
index number
count number

属性

属性说明
$implicit: T 声明于构造函数中
ngForOf: NgIterable<T> 声明于构造函数中
index: number 声明于构造函数中
count: number 声明于构造函数中
first: boolean 只读
last: boolean 只读
even: boolean 只读
odd: boolean 只读