Deprecation warning
API
class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {
constructor($implicit: T, ngForOf: U, index: number, count: number): NgForOfContext<T, U>;
override $implicit: T;
override ngForOf: U;
override index: number;
override count: number;
readonly first: boolean;
readonly last: boolean;
readonly even: boolean;
readonly odd: boolean;
}
constructor
NgForOfContext<T, U>TReference to the current item from the collection.
UThe 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).
numberReturns an index of the current item in the collection.
numberReturns total amount of items in the collection.
NgForOfContext<T, U>
$implicit
TReference to the current item from the collection.
ngForOf
UThe 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
numberReturns an index of the current item in the collection.
count
numberReturns total amount of items in the collection.
first
booleanlast
booleaneven
booleanodd
boolean