NgForOfContext
Class
constructor
NgForOfContext<T, U>
@param$implicit
T
Reference to the current item from the collection.
@paramngForOf
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
).
@paramindex
number
Returns an index of the current item in the collection.
@paramcount
number
Returns total amount of items in the collection.
@returns
NgForOfContext<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