File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ Creating a Single-page Application with Vue + Vue Router feels natural: with Vue
17
17
<p >
18
18
<!-- use the router-link component for navigation. -->
19
19
<!-- specify the link by passing the `to` prop. -->
20
- <!-- `<router-link>` will render an `<a>` tag with the correct `href` attribute -->
20
+ <!-- `<router-link>` will render an `<a>` tag with -->
21
+ <!-- the correct `href` attribute -->
21
22
<router-link to =" /" >Go to Home</router-link >
22
23
<router-link to =" /about" >Go to About</router-link >
23
24
</p >
@@ -57,7 +58,8 @@ const routes = [
57
58
// You can pass in additional options here, but let's
58
59
// keep it simple for now.
59
60
const router = VueRouter .createRouter ({
60
- // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
61
+ // 4. Provide the history implementation to use. We
62
+ // are using the hash history for simplicity here.
61
63
history: VueRouter .createWebHashHistory (),
62
64
routes, // short for `routes: routes`
63
65
})
You can’t perform that action at this time.
0 commit comments