You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`trackBy`|`keyof T` or `(index: number, item: T) => any`| Identifier function for items. `rxVirtualFor` provides a shorthand where you can name the property directly. |
439
-
|`patchZone`|`boolean`|_default: `true`_ if set to `false`, the `RxVirtualForDirective` will operate out of `NgZone`. See [NgZone optimizations](https://www.rx-angular.io/docs/template/performance-issues/ngzone-optimizations)|
440
-
|`parent`|`boolean`|_default: `false`_ if set to `false`, the `RxVirtualForDirective` won't inform its host component about changes being made to the template. More performant, `@ViewChild` and `@ContentChild` queries won't work. [Handling view and content queries](https://www.rx-angular.io/docs/template/performance-issues/handling-view-and-content-queries)|
441
-
|`strategy`|`Observable<RxStrategyNames \ string> \ RxStrategyNames \ string>`|_default: `normal`_ configure the `RxStrategyRenderStrategy` used to detect changes. [Render Strategies](https://www.rx-angular.io/docs/cdk/render-strategies)|
442
-
|`renderCallback`|`Subject<U>`| giving the developer the exact timing when the `RxVirtualForDirective` created, updated, removed its template. Useful for situations where you need to know when rendering is done. |
443
-
|`viewCacheSize`|`number`|_default: `20`_ Controls the amount if views held in cache for later re-use when a user is scrolling the list If this is set to 0, `rxVirtualFor` won't cache any view, thus destroying & re-creating very often on scroll events. |
|`trackBy`|`keyof T` or `(index: number, item: T) => any`| Identifier function for items. `rxVirtualFor` provides a shorthand where you can name the property directly. |
439
+
|`patchZone`|`boolean`|_default: `true`_ if set to `false`, the `RxVirtualForDirective` will operate out of `NgZone`. See [NgZone optimizations](https://www.rx-angular.io/docs/template/performance-issues/ngzone-optimizations)|
440
+
|`parent`|`boolean`|_default: `false`_ if set to `false`, the `RxVirtualForDirective` won't inform its host component about changes being made to the template. More performant, `@ViewChild` and `@ContentChild` queries won't work. [Handling view and content queries](https://www.rx-angular.io/docs/template/performance-issues/handling-view-and-content-queries)|
441
+
|`strategy`|`Observable<RxStrategyNames \ string> \ RxStrategyNames \ string>`|_default: `normal`_ configure the `RxStrategyRenderStrategy` used to detect changes. [Render Strategies](https://www.rx-angular.io/docs/cdk/render-strategies)|
442
+
|`renderCallback`|`Subject<U>`| giving the developer the exact timing when the `RxVirtualForDirective` created, updated, removed its template. Useful for situations where you need to know when rendering is done. |
443
+
|`templateCacheSize`|`number`|_default: `20`_ Controls the amount if views held in cache for later re-use when a user is scrolling the list If this is set to 0, `rxVirtualFor` won't cache any view, thus destroying & re-creating very often on scroll events. |
444
444
445
445
### RxVirtualScrollViewportComponent
446
446
@@ -631,7 +631,7 @@ import { RX_VIRTUAL_SCROLL_DEFAULT_OPTIONS } from '@rx-angular/template/experime
631
631
useValue: { // should be of type `RxVirtualScrollDefaultOptions`
632
632
runwayItems: 50,
633
633
// turn off cache by default
634
-
viewCacheSize: 0
634
+
templateCacheSize: 0
635
635
}
636
636
}]
637
637
})
@@ -641,7 +641,7 @@ import { RX_VIRTUAL_SCROLL_DEFAULT_OPTIONS } from '@rx-angular/template/experime
641
641
642
642
```ts
643
643
/* determines how many templates can be cached and re-used on rendering */
644
-
constDEFAULT_VIEW_CACHE_SIZE=20;
644
+
constDEFAULT_TEMPLATE_CACHE_SIZE=20;
645
645
/* determines how many views will be rendered in scroll direction */
646
646
const DEFAULT_ITEM_SIZE =50;
647
647
/* determines how many views will be rendered in the opposite scroll direction */
0 commit comments