W3cubDocs

/Angular 11

NgForOfContext

class

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

Constructor

constructor($implicit: T, ngForOf: U, index: number, count: number)

Parameters
$implicit T
ngForOf U
index number
count number

Properties

Property Description
$implicit: T Declared in Constructor
ngForOf: U 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–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/NgForOfContext