Skip to content

lit-ui-router / UiView

Class: UiView

Defined in: packages/lit-ui-router/src/ui-view.ts:79

Slots

  • default<ui-view> renders slotted content as fallback whenever no routed component is active.

Events

  • ui-router-context — This event is fired to obtain the uiRouter instance, when not directly provided. Once obtained, the <ui-view> listens and provides the uiRouter to descendants.
  • ui-view-context — This event is fired to obtain the parent <ui-view>.

Extends

Properties

PropertyTypeDefault valueDescriptionDefined in
namestring''the view name this viewport fills; empty selects the $default viewpackages/lit-ui-router/src/ui-view.ts:82
uiRouterUIRouterLitundefined<ui-view> can be used without <ui-router> by providing the uiRouter property directly.packages/lit-ui-router/src/ui-view.ts:89