lit-ui-router / LitViewConfig
Class: LitViewConfig
Defined in: packages/lit-ui-router/src/core.ts:43
The view config UIRouterLit builds for each lit view declaration, implementing @uirouter/core's ViewConfig.
<ui-view> renders a view only when its config is a LitViewConfig; a renderer that draws lit views outside <ui-view> makes the same instanceof check before it reads viewDecl.
Implements
ViewConfig
Constructors
Constructor
ts
new LitViewConfig(path, viewDecl): LitViewConfig;Defined in: packages/lit-ui-router/src/core.ts:54
Create a new LitViewConfig.
Parameters
| Parameter | Type | Description |
|---|---|---|
path | PathNode[] | The path nodes for this view |
viewDecl | _ViewDeclaration | The view declaration |
Returns
LitViewConfig
Properties
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
$id | public | number | ... | Unique identifier for this view config | packages/lit-ui-router/src/core.ts:45 |
loaded | public | boolean | true | Whether the view configuration has been loaded | packages/lit-ui-router/src/core.ts:47 |
path | public | PathNode[] | undefined | The path nodes for this view | packages/lit-ui-router/src/core.ts:55 |
viewDecl | public | _ViewDeclaration | undefined | The view declaration | packages/lit-ui-router/src/core.ts:56 |
Methods
load()
ts
load(): Promise<LitViewConfig>;Defined in: packages/lit-ui-router/src/core.ts:63
Load the view configuration.
Returns
Promise<LitViewConfig>
A promise that resolves to this view config
Implementation of
ViewConfig.load