Directive to mark an ng-template as the item template for the virtual scroll component. The template provided by this directive will be used to render each item in the virtual scroll. The context for the template will include the item data and its index.

Example

<igx-virtual-scroll [data]="items">
  <ng-template igxVirtualItem let-item let-i="index">
    <div>{{ i }}: {{ item }}</div>
  </ng-template>
</igx-virtual-scroll>

IgxVirtualItemDirective

new IgxVirtualItemDirective(): IgxVirtualItemDirective

Returns IgxVirtualItemDirective