Skip to content

Commit 76fb016

Browse files
committed
Fix circular dependency for app.routes.ts
Found with `npx fallow`.
1 parent 3a59fa4 commit 76fb016

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/app.routes.constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
export const paramMapNameYear = "year" as const;
1111
export const paramMapNameFylke = "fylke" as const;
1212
export const paramMapNameKommune = "kommune" as const;
13+
14+
export const yearSelectorRoutePath = "år";

src/app/app.routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ import {
1111
paramMapNameFylke,
1212
paramMapNameKommune,
1313
paramMapNameYear,
14+
yearSelectorRoutePath,
1415
} from "./app.routes.constants";
1516
import { KommuneComponent } from "./kommune/kommune/kommune.component";
1617
import { OppdateringComponent } from "./oppdatering/oppdatering.component";
1718
import { AboutComponent } from "./about/about.component";
1819

19-
export const yearSelectorRoutePath = "år";
20-
2120
export const routes: Routes = [
2221
{ path: "", redirectTo: `/${currentYear}`, pathMatch: "full" },
2322
{ path: yearSelectorRoutePath, component: YearSelectorComponent },

src/app/menu.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "rxjs";
1111
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
1212

13-
import { yearSelectorRoutePath } from "./app.routes";
13+
import { yearSelectorRoutePath } from "./app.routes.constants";
1414

1515
export const MenuItemKeyObj = {
1616
YearSelector: "YearSelector",

0 commit comments

Comments
 (0)