This commit is contained in:
trading_peter 2022-03-12 23:37:34 +01:00
parent 3e1bd3fe01
commit 923c5fcd04
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-router", "name": "@tp/tp-router",
"version": "1.0.1", "version": "1.0.2",
"description": "", "description": "",
"main": "tp-router.js", "main": "tp-router.js",
"scripts": { "scripts": {

View File

@ -131,7 +131,7 @@ export class TpRouter extends LitElement {
const routes = this._slottedChildren; const routes = this._slottedChildren;
routes.forEach(routeEl => { routes.forEach(routeEl => {
if (routeEl.nodeName === 'tp-ROUTE') { if (routeEl.nodeName === 'TP-ROUTE') {
this.add(routeEl.path, routeEl.data, routeEl.namespace, routeEl.redirect); this.add(routeEl.path, routeEl.data, routeEl.namespace, routeEl.redirect);
} }
}); });