Skip to content

Function: injectHistory()

@roomful/angular


@roomful/angular / injectHistory

injectHistory<TPresence>(options?): InjectHistoryResult

Defined in: angular/src/index.ts:1241

Subscribes to the collaborative history engine: a reactive shared timeline plus reactive canUndo/canRedo, with capture/transaction/undo/redo controls.

Must be called in an injection context.

TPresence extends PresenceData = PresenceData

The room presence shape.

HistoryOptions

Optional history configuration.

InjectHistoryResult

The timeline and undo/redo availability signals plus controls.