Skip to content

Commit 3e9d075

Browse files
committed
fix: correct syntax error in router configuration for simple-counter component loading
1 parent cb93608 commit 3e9d075

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/js/router.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,14 @@ export function defineRoutes(router) {
448448
viewPath: '/views/simple-state-demo.html',
449449
afterRender: () => {
450450
import('./components/simple-counter.js').catch(error => {
451-
console.error('Error loading simple-counter component:',
452-
'/new-test-feature': {
453-
viewPath: '/views/new-test-feature.html',
454-
afterRender: initNewTestFeaturePage
455-
} error);
451+
console.error('Error loading simple-counter component:', error);
456452
});
457453
}
458454
},
455+
'/new-test-feature': {
456+
viewPath: '/views/new-test-feature.html',
457+
afterRender: initNewTestFeaturePage
458+
},
459459
'/test-feature': {
460460
viewPath: '/views/test-feature.html',
461461
afterRender: initTestFeaturePage

0 commit comments

Comments
 (0)