Angular Signal Generators
    Preparing search index...

    Options for timerSignal.

    interface TimerSignalOptions<T = number> {
        debugName?: string;
        injector?: Injector;
        selector?: (tickCount: number) => T;
        stopped?: boolean;
    }

    Type Parameters

    • T = number

    Hierarchy

    • Pick<CreateSignalOptions<T>, "debugName">
      • TimerSignalOptions
    Index

    Properties

    debugName?: string

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

    injector?: Injector

    pass injector if this is not created in Injection Context

    selector?: (tickCount: number) => T

    A selector function that receives the tick count and returns the value to emit from the signal. If not provided, the tick count (number) is emitted.

    stopped?: boolean

    If true, the timer isn't running at start. When running in a non-browser environment, the signal always begins in a stopped state by default.