This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

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

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

Parameters

$implicit

Type: T.

ngForOf

Type: NgIterable.

index

Type: number.

count

Type: number.

Properties

Property Description
$implicit: T Declared in constructor.
ngForOf: NgIterable<T> Declared in constructor.
index: number Declared in constructor.
count: number Declared in constructor.
first: boolean Read-only.
last: boolean Read-only.
even: boolean Read-only.
odd: boolean Read-only.