import { ChangeDetectionStrategy , Component , ViewEncapsulation } from '@angular/core' ; title @ Component ( { selector : 'cdk-virtual-scroll-horizontal-example' , styleUrls : [ 'cdk-virtual-scroll-horizontal-example.css' ] , templateUrl : 'cdk-virtual-scroll-horizontal-example.html' , encapsulation : ViewEncapsulation . None , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class CdkVirtualScrollHorizontalExample { items = Array . from ( { length : 100000 } ) . map ( ( _ , i ) => `Item #${ i }` ) ; }