Skip to content

Commit c1e89e1

Browse files
MachinisteWebposva
authored andcommitted
Doc EN : Add ` on code part to consistency and comprehension (#1405)
* Change `standalone` for `full` like from Official Vuejs.org Signed-off-by: Bruno Lesieur <[email protected]> * Add some ` into getting-started.md when a code is referenced Signed-off-by: Bruno Lesieur <[email protected]>
1 parent f636b8e commit c1e89e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/en/essentials/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Creating a Single-page Application with Vue.js + vue-router is dead simple. With
1717
<p>
1818
<!-- use router-link component for navigation. -->
1919
<!-- specify the link by passing the `to` prop. -->
20-
<!-- <router-link> will be rendered as an `<a>` tag by default -->
20+
<!-- `<router-link>` will be rendered as an `<a>` tag by default -->
2121
<router-link to="/foo">Go to Foo</router-link>
2222
<router-link to="/bar">Go to Bar</router-link>
2323
</p>
@@ -30,7 +30,7 @@ Creating a Single-page Application with Vue.js + vue-router is dead simple. With
3030
### JavaScript
3131

3232
``` js
33-
// 0. If using a module system (e.g. via vue-cli), import Vue and VueRouter and then call Vue.use(VueRouter).
33+
// 0. If using a module system (e.g. via vue-cli), import Vue and VueRouter and then call `Vue.use(VueRouter)`.
3434

3535
// 1. Define route components.
3636
// These can be imported from other files
@@ -40,7 +40,7 @@ const Bar = { template: '<div>bar</div>' }
4040
// 2. Define some routes
4141
// Each route should map to a component. The "component" can
4242
// either be an actual component constructor created via
43-
// Vue.extend(), or just a component options object.
43+
// `Vue.extend()`, or just a component options object.
4444
// We'll talk about nested routes later.
4545
const routes = [
4646
{ path: '/foo', component: Foo },
@@ -51,7 +51,7 @@ const routes = [
5151
// You can pass in additional options here, but let's
5252
// keep it simple for now.
5353
const router = new VueRouter({
54-
routes // short for routes: routes
54+
routes // short for `routes: routes`
5555
})
5656

5757
// 4. Create and mount the root instance.

0 commit comments

Comments
 (0)