NgForOfContext

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 }

构造函数

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

参数

$implicit

Type: T.

ngForOf

Type: NgIterable.

index

Type: number.

count

Type: number.

属性

属性名类型说明
$implicit声明于构造函数中
ngForOf声明于构造函数中
index声明于构造函数中
count声明于构造函数中
first只读
last只读
even只读
odd只读