---
url: https://lit-ui-router.dev/reference/ui-router-devtools/plugin/classes/DevtoolsPlugin.md
---
[ui-router-devtools](../../index.md) / [plugin](../index.md) / DevtoolsPlugin

# Class: DevtoolsPlugin

Defined in: [ui-router-devtools/src/plugin.ts:28](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/plugin.ts#L28)

Appends a `<ui-router-devtools>` for the router to `document.body`; `dispose()` removes it.

## Implements

* [`UIRouterPlugin`](https://ui-router.github.io/core/docs/latest/interfaces/_interface_.uirouterplugin.html)

## Constructors

### Constructor

```ts
new DevtoolsPlugin(router, __namedParameters?): DevtoolsPlugin;
```

Defined in: [ui-router-devtools/src/plugin.ts:33](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/plugin.ts#L33)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `router` | [`UIRouter`](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) |
| `__namedParameters?` | [`DevtoolsPluginOptions`](../interfaces/DevtoolsPluginOptions.md) |

#### Returns

`DevtoolsPlugin`

## Properties

| Property | Type | Default value | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `name` | `string` | `'devtools'` | The plugin's name in the router's plugin registry. | [ui-router-devtools/src/plugin.ts:30](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/plugin.ts#L30) |

## Accessors

### element

#### Get Signature

```ts
get element(): UIRouterDevtools;
```

Defined in: [ui-router-devtools/src/plugin.ts:50](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/plugin.ts#L50)

The `<ui-router-devtools>` the plugin appended.

##### Returns

[`UIRouterDevtools`](../../define/interfaces/UIRouterDevtools.md)

## Methods

### dispose()

```ts
dispose(): void;
```

Defined in: [ui-router-devtools/src/plugin.ts:54](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/plugin.ts#L54)

Instructs the Disposable to clean up any resources

#### Returns

`void`

#### Implementation of

`UIRouterPlugin.dispose`
