W3cubDocs

/Angular

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://angular.io/api/common/NgForOfContext