Optional injector reference if created outside injector context and IntersectionObserver options. If no IntersectionObserver options are passed then only all attributes are observed.

interface IntersectionObserverOptions {
    debugName?: string;
    injector?: Injector;
    root?: null | Element | Document | ElementRef;
    rootMargin?: string;
    threshold?: number | number[];
}

Hierarchy

  • Omit<IntersectionObserverInit, "root">
  • Pick<CreateSignalOptions<unknown>, "debugName">
    • IntersectionObserverOptions

Properties

debugName?: string

A debug name for the signal. Used in Angular DevTools to identify the signal.

injector?: Injector

This signal must either be created in an injection context or passed an injector.

root?: null | Element | Document | ElementRef

The root element where intersections will be observed.

rootMargin?: string
threshold?: number | number[]