Creates a history signal from a reactive source. Source changes are observed by an effect, so multiple synchronous emissions may be coalesced by Angular and not every intermediate value is guaranteed to be recorded.
The reactive source whose observed values are recorded.
Optionaloptions: HistorySignalOptions<T>
Signal options and the maximum retained history length.
Creates a writable signal that records changes for undo and redo.
Setting a value after undoing clears the redo history. Values considered equal by
options.equal are not recorded.
The signal's initial value.
Optionaloptions: HistorySignalOptions<T>
Signal options and the maximum retained history length.
Creates a history signal from either a value or a reactive source.