Created
November 7, 2018 21:34
-
-
Save viclotana/0c861b6dcc1f517bf9e73908c5d5096f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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