Options for eventSignal.

interface EventSignalOptions<T> {
    debugName?: string;
    equal?: ValueEqualityFn<undefined | T>;
    initialValue?: unknown;
    injector?: Injector;
}

Type Parameters

  • T

Hierarchy

  • Pick<CreateSignalOptions<T>, "debugName">
    • EventSignalOptions

Properties

debugName?: string

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

equal?: ValueEqualityFn<undefined | T>

An equal function put on the selector result.

initialValue?: unknown

The initial value until the first emission.

injector?: Injector

Needed if not created in injection context.