tp-router/tp-route.js

37 lines
628 B
JavaScript
Raw Permalink Normal View History

2022-03-12 22:43:21 +01:00
/**
@license
Copyright (c) 2022 trading_peter
This program is available under Apache License Version 2.0
*/
import { LitElement, css } from 'lit';
class TpRoute extends LitElement {
static get styles() {
return [
css`
:host {
display: block;
}
`
];
}
static get properties() {
return {
path: { type: String },
data: { type: String },
namespace: { type: String },
redirect: { type: String },
};
}
constructor() {
super();
this.path = '*';
this.namespace = 'default';
}
}
window.customElements.define('tp-route', TpRoute);