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

NgForOfContext

npm Package @angular/common
Module import { NgForOfContext } from '@angular/common';
Source common/src/directives/ng_for_of.ts

Overview

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

Constructor

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

Members

      
      $implicit: T
    


      
      index: number
    

      
      count: number
    

      
      get first: boolean
    

      
      get last: boolean
    

      
      get even: boolean
    

      
      get odd: boolean