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
1717 <p >
1818 <!-- use the router-link component for navigation. -->
1919 <!-- 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 -->
2122 <router-link to =" /" >Go to Home</router-link >
2223 <router-link to =" /about" >Go to About</router-link >
2324 </p >
@@ -57,7 +58,8 @@ const routes = [
5758// You can pass in additional options here, but let's
5859// keep it simple for now.
5960const 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.
6163 history: VueRouter .createWebHashHistory (),
6264 routes, // short for `routes: routes`
6365})
You can’t perform that action at this time.
0 commit comments