resizeSignal

G
W

Uses ResizeObserver to observe changes to elements passed to the signal. All of the same options that can be passed to an IntersectionObserver can be passed to this signal.

Like most other signal functions in this library, it can be passed a reference to an element or a signal that returns an element. This makes it convenient to use with Angular's viewChild signal.

Observing size changes