Skip to content

Commit

Permalink
refactor: route constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
ochairo committed Mar 24, 2024
1 parent 5db803a commit 2e397c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { router } from "./core/router/router";
import { routeConfigs } from "./routes";
import { routesConfig } from "./routes";

const rootElement = document.getElementById("root")!;
(() => {
window.addEventListener("popstate", () => router(routeConfigs, rootElement));
window.addEventListener("popstate", () => router(routesConfig, rootElement));
document.addEventListener("DOMContentLoaded", () =>
router(routeConfigs, rootElement)
router(routesConfig, rootElement)
);
})();
2 changes: 1 addition & 1 deletion src/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import showcaseModule from "@showcase/showcase.module";
import { RouteConfig } from "./core/router/interfaces";

// LazyLoad feature modules
export const routeConfigs: RouteConfig[] = [
export const routesConfig: RouteConfig[] = [
{
path: "/",
moduleLoader: showcaseModule,
Expand Down

0 comments on commit 2e397c1

Please sign in to comment.