Skip to content

ui-router-devtools / ui-router-devtools / Recorder

Interface: Recorder ​

Defined in: ui-router-devtools/src/recorder.ts:28

A recording of one router's events, from record.

Properties ​

PropertyModifierTypeDescriptionDefined in
droppedreadonlynumberEvents discarded since recording began, by the ring buffer or by clear().ui-router-devtools/src/recorder.ts:34
eventsreadonlyreadonly RouterEvent[]The ring buffer's transition-scoped events, in order; the snapshots are in session() only.ui-router-devtools/src/recorder.ts:32
routerIdreadonlystringThe router's id on this page, shared by every recorder of that router.ui-router-devtools/src/recorder.ts:30

Methods ​

clear() ​

ts
clear(): void;

Defined in: ui-router-devtools/src/recorder.ts:38

Empties the ring buffer, counting its events in dropped; the snapshots stay.

Returns ​

void


session() ​

ts
session(redaction?): Session;

Defined in: ui-router-devtools/src/recorder.ts:36

The recording as a session file; redaction defaults to param keys without their values, messages kept.

Parameters ​

ParameterType
redaction?Partial<Redaction>

Returns ​

Session


stop() ​

ts
stop(): void;

Defined in: ui-router-devtools/src/recorder.ts:40

Stops recording and detaches from the router.

Returns ​

void


subscribe() ​

ts
subscribe(listener): () => void;

Defined in: ui-router-devtools/src/recorder.ts:42

Calls listener with each event as it is recorded; the returned function unsubscribes.

Parameters ​

ParameterType
listener(event) => void

Returns ​

() => void