Skip to content

Commit 9e26b3d

Browse files
committed
refactor: prepend forward slashes to theme switcher navigation paths
1 parent b6afb70 commit 9e26b3d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

projects/demo-ngx-theme-stack/src/app/components/theme-switcher/theme-switcher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { RouterLink, RouterLinkActive } from '@angular/router';
88
})
99
export class ThemeSwitcherComponent {
1010
protected readonly modes = [
11-
{ id: 'toggle', path: 'toggle', label: 'Simple Toggle', icon: 'toggle_on' },
12-
{ id: 'cycle', path: 'cycle', label: 'Multi Cycle', icon: 'sync' },
13-
{ id: 'select', path: 'select', label: 'Direct Select', icon: 'checklist' },
11+
{ id: 'toggle', path: '/toggle', label: 'Simple Toggle', icon: 'toggle_on' },
12+
{ id: 'cycle', path: '/cycle', label: 'Multi Cycle', icon: 'sync' },
13+
{ id: 'select', path: '/select', label: 'Direct Select', icon: 'checklist' },
1414
];
1515
}

0 commit comments

Comments
 (0)