Angular Signal Generators Logo

Angular Signal Generators

Angular Signal Generators is a library to help expand the usefulness of signals. This is done by exposing purpose built signals meant to simplify common tasks encountered in Components. They work like vanilla signals, but with extra capabilities built in.

Function Demos

  • Async
    G
    W

    "Flattens" a source of promises or observables to a signal of result values, switching to the new source as soon as it changes.
    Example
  • Debounce
    G
    W

    Creates a signal whose value isn't changed until it a certain has passed since the last update.
    Example
    Debounced
  • Extend
    G
    W

    Adds new methods to an existing signal.
    Example
    hello
  • Filter
    W

    Filters values set directly on the signal.
    Example
    Filteredno upper case letters please
  • Lift
    G
    W

    "Lifts" methods from a signal's value to the signal itself just by passing a tuple of method names.
    Example
  • Map
    G
    W

    Creates a signal whose input value is immediately mapped to a different value based on a selector. Either a value or multiple signals can be passed and used in the selector function.
    Example
    Doubled2
  • Reduce
    W

    Creates a signal similar to Array.reduce or Rxjs's scan operator, using a reducer function to create a new value from the current and prior values.
    Example
    Summed: 0
  • Sequence
    G
    W

    The Sequence Signal is useful for situations where you want to easily cycle between options.
    Example
    Choice A
    Choice B
    Choice C
  • SignalToIterator
    U

    This converts a signal into an AsyncIterator where is can be used in a for async loop.
    Example
  • Storage
    W

    A signal that uses a secondary store to persist values beyond an application's lifetime. with built-in localStorageSignal and sessionStorageSignal implementations.
    Example
    Refresh page to see value persist
  • Timer
    G
    W

    Creates a signal that emits based on a timer or interval.
    Example
    Time since start
    0
  • Tween
    G
    W

    Tween animations that allow a signal to transform between values over a set duration.
    Example