Skip to content

ui-router-devtools / lit-ui-router / litViewLocator

Function: litViewLocator() ​

ts
function litViewLocator(router, __namedParameters?): ViewLocator;

Defined in: ui-router-devtools/src/lit-ui-router.ts:140

Finds the <ui-view> behind a view the panel names, and outlines it on the page while the Views point at it. Elements are matched by router and fqn, which <ui-view> builds from its name and the views around it.

Parameters ​

ParameterType
routerUIRouter
__namedParameters?LitViewLocatorOptions

Returns ​

ViewLocator

Example ​

ts
import type { UIRouter } from '@uirouter/core';
import { DevtoolsPlugin } from 'ui-router-devtools/plugin';
import { litViewLocator } from 'ui-router-devtools/lit-ui-router';

declare const router: UIRouter;

router.plugin(DevtoolsPlugin, { viewLocator: litViewLocator });