⚡ Uses original router
- it has benefits to use hash properly
This commit is contained in:
@@ -2,7 +2,7 @@ import type { RouteConfig } from "@lit-labs/router";
|
||||
import { html } from "lit";
|
||||
|
||||
export const route = {
|
||||
path: "/#/episodes",
|
||||
path: "/episodes" as const,
|
||||
async enter() {
|
||||
await import("./index.js");
|
||||
return true;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ export class AppCfpodcasts extends LitElement {
|
||||
<main>${this._routes.outlet()}</main>
|
||||
<nav>
|
||||
<a href="${this._routes.link("/")}">Home</a>
|
||||
<a href="${this._routes.link("/", { hash: "/episodes" })}">Episodes</a>
|
||||
<a href="${this._routes.link(routeEpisodes.path)}">Episodes</a>
|
||||
</nav>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user