• Overview

This site uses cookies from Google to deliver its services and to analyze traffic.

@angular/common

NgForOfContext

Class

API

  
    class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {}
  
  

constructor

NgForOfContext<T, U>
@param$implicitT

Reference to the current item from the collection.

@paramngForOfU

The value of the iterable expression. Useful when the expression is more complex then a property access, for example when using the async pipe (userStreams | async).

@paramindexnumber

Returns an index of the current item in the collection.

@paramcountnumber

Returns total amount of items in the collection.

@returnsNgForOfContext<T, U>

$implicit

T

Reference to the current item from the collection.

ngForOf

U

The value of the iterable expression. Useful when the expression is more complex then a property access, for example when using the async pipe (userStreams | async).

index

number

Returns an index of the current item in the collection.

count

number

Returns total amount of items in the collection.

first

boolean

last

boolean

even

boolean

odd

boolean
Jump to details