@juulsgaard/signal-tools
    Preparing search index...

    Function subjectToSignal

    • A simple conversion of Behaviour Subject to signal. This will not handle unsubscription, and should only be used when the subject itself is closed / unloaded properly.

      Type Parameters

      • T

      Parameters

      • subject: BehaviorSubject<T>

      Returns Signal<T>

    • A simple conversion of Subject to signal. This will not handle unsubscription, and should only be used when the subject itself is closed / unloaded properly.

      Type Parameters

      • T

      Parameters

      • subject: Subject<T>
      • initial: T

        An initial value for the signal.

      Returns Signal<T>