CngxMeasure
projects/common/data/recycler/measure.directive.ts
Import#
import { CngxMeasure } from '@cngx/common/data'
Description#
Atom directive that measures the host element's height and reports it
to the recycler via recycler.measure(index, element).
Uses ResizeObserver to detect height changes (e.g. content expansion,
font loading). Cleanup is automatic via DestroyRef.
Also sets data-cngx-recycle-index on the host element for focus tracking.
@for (item of visibleItems(); track item.id; let i = $index) {
<div [cngxMeasure]="recycler" [cngxMeasureIndex]="recycler.start() + i">
{{ item.content }}
</div>
}