Skip to content

ui-router-devtools / define / UIRouterDevtools

Interface: UIRouterDevtools ​

Defined in: ui-router-devtools/src/ui-router-devtools.ts:10

<ui-router-devtools>: a pill that opens a panel of the router's states, transitions and config.

Extends ​

  • LitElement

Properties ​

PropertyModifierTypeDescriptionDefined in
historypublicnumberHow many transitions the log keeps; the attribute is history.ui-router-devtools/src/ui-router-devtools.ts:14
recorderreadonlyRecorder | undefinedThe recorder behind the panel, for reporters that should share it.ui-router-devtools/src/ui-router-devtools.ts:20
redactionpublicRedactionWhat Export scrubs unless the panel's toggles say otherwise: param keys without their values and messages kept by default.ui-router-devtools/src/ui-router-devtools.ts:18
routerpublic| UIRouter | undefinedThe router to record.ui-router-devtools/src/ui-router-devtools.ts:12
spanspublicreadonly SpanRecord[]Spans from a tracer, which the Timeline joins to transitions; setting it replaces them all. It holds the latest 2000.ui-router-devtools/src/ui-router-devtools.ts:26
timeResolvespublicbooleanTime resolves by wrapping their resolveFn; read when the router attaches. The attribute is time-resolves.ui-router-devtools/src/ui-router-devtools.ts:16
viewLocatorpublicViewLocator | undefinedFinds a view's element on the page for the Views, such as litViewLocator from ui-router-devtools/lit-ui-router; without one the Views draw the router's data only.ui-router-devtools/src/ui-router-devtools.ts:30

Methods ​

addSpan() ​

ts
addSpan(span): void;

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

Adds a span, or replaces the one with its spanId: a span can be sent when it starts, without endTime, and again when it ends.

Parameters ​

ParameterType
spanSpanRecord

Returns ​

void


importSession() ​

ts
importSession(session): void;

Defined in: ui-router-devtools/src/ui-router-devtools.ts:24

Shows session instead of the live router until the panel's Live button is pressed.

Parameters ​

ParameterType
sessionSession

Returns ​

void


session() ​

ts
session(redaction?): Session | undefined;

Defined in: ui-router-devtools/src/ui-router-devtools.ts:22

The session the panel shows, live or imported, scrubbed by redaction, which defaults to the element's.

Parameters ​

ParameterType
redaction?Partial<Redaction>

Returns ​

Session | undefined