MCPcopy Index your code
hub / github.com/TanStack/virtual / AppComponent

Class AppComponent

examples/angular/window/src/app/app.component.ts:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 `,
53})
54export class AppComponent {
55 scrollElement = viewChild<ElementRef<HTMLDivElement>>('scrollElement')
56
57 virtualizer = injectWindowVirtualizer(() => ({
58 count: 10000,
59 estimateSize: () => 35,
60 overscan: 5,
61 scrollMargin: this.scrollElement()?.nativeElement.offsetTop,
62 }))
63}

Callers

nothing calls this directly

Calls 1

injectWindowVirtualizerFunction · 0.90

Tested by

no test coverage detected