NgForOfContext

class

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)

Parameters
$implicit T
ngForOf NgIterable
index number
count 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.

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/common/NgForOfContext