• 개요
@angular/common

NgForOfContext

클래스
사용 중단 권고v20.0부터

사용 중단을 권고합니다.

The ngFor directive is deprecated. Use the @for block instead.

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
상세 내용으로 이동