Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NgForOfContext

      
      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