Skip to content

Commit 66ff9fc

Browse files
committed
Merge pull request #2343 from gwilymhumphreys/patch-1
Fix getIndexRoute example in DynamicRouting.md
2 parents 3cb9aa6 + 2b1e8a0 commit 66ff9fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guides/advanced/DynamicRouting.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const CourseRoute = {
3030

3131
getIndexRoute(location, callback) {
3232
require.ensure([], function (require) {
33-
callback(null, require('./components/Index'))
33+
callback(null, {
34+
component: require('./components/Index'),
35+
})
3436
})
3537
},
3638

0 commit comments

Comments
 (0)