• Overview
@angular/core

TrackByFunction

interface

A function optionally passed into the NgForOf directive to customize how NgForOf uniquely identifies items in an iterable.

  
    interface TrackByFunction<T> {  <U extends T>(index: number, item: T & U): any;}
  
  

any
@paramindexnumber

The index of the item within the iterable.

@paramitemT & U

The item in the iterable.

@returnsany
Jump to details