Skip to content

Instantly share code, notes, and snippets.

@viclotana
Created November 7, 2018 21:34
Show Gist options
  • Save viclotana/0c861b6dcc1f517bf9e73908c5d5096f to your computer and use it in GitHub Desktop.
Save viclotana/0c861b6dcc1f517bf9e73908c5d5096f to your computer and use it in GitHub Desktop.
import {ChangeDetectionStrategy, Component} from '@angular/core';
/** @title Basic virtual scroll */
@Component({
selector: 'cdk-virtual-scroll-overview-example',
styleUrls: ['cdk-virtual-scroll-overview-example.css'],
templateUrl: 'cdk-virtual-scroll-overview-example.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CdkVirtualScrollOverviewExample {
items = Array.from({length: 100000}).map((_, i) => `Item #${i}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment