Skip to content

Commit 82ce70f

Browse files
committed
translate basic.md
1 parent 0ff713a commit 82ce70f

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

docs/ja/basic.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Basic Usage
1+
# 基本的な使い方
22

3-
Creating a Single-page Application with Vue.js + vue-router is dead simple. With Vue.js, we are already breaking our application into components. When adding vue-router to the mix, all we need to do is map our components to the routes and let vue-router know where to render them. Here's a basic example:
3+
Vue.js + vue-router でシングルページアプリケーションを作成するのは極めてシンプルです。Vue.js で、we are already breaking our application into components. ミックスするため vue-router を追加する時、全ての我々のコンポーネントを routes に変換し、そして、vue-router がそれらをレンダリングするのを知らせたりする必要があります。ここでは基本的な例を示します:
44

55
### HTML
66

77
``` html
88
<div id="app">
99
<h1>Hello App!</h1>
1010
<p>
11-
<!-- use v-link directive for navigation. -->
11+
<!-- ナビゲーション向けに v-link ディレクティブを使用 -->
1212
<a v-link="/foo">Go to Foo</a>
1313
<a v-link="/bar">Go to Bar</a>
1414
</p>
@@ -20,7 +20,7 @@ Creating a Single-page Application with Vue.js + vue-router is dead simple. With
2020
### JavaScript
2121

2222
``` js
23-
// Define some components
23+
// いくつかのコンポーネントを定義。
2424
var Foo = Vue.extend({
2525
template: '<p>This is foo!</p>'
2626
})
@@ -29,21 +29,19 @@ var Bar = Vue.extend({
2929
template: '<p>This is bar!</p>'
3030
})
3131

32-
// The router needs a root component to render.
33-
// For demo purposes, we will just use an empty one
34-
// because we are using the HTML as the app template.
32+
// router は、レンダリングするために1つの root コンポーネントが必要です。
33+
// デモ目的向けで、app テンプレートとして HTML を使用しているため、空を使用します。
3534
var App = Vue.extend({})
3635

37-
// Create a router instance.
38-
// You can pass in additional options here, but let's
39-
// keep it simple for now.
36+
// router インスタンスを作成。
37+
// ここでは追加的なオプションで渡すことができますが、今はシンプルに保っています。
4038
var router = new VueRouter()
4139

42-
// Define some routes.
43-
// Each route should map to a component. The "component" can
44-
// either be an actual component constructor created via
45-
// Vue.extend(), or just a component options object.
46-
// We'll talk about nested routes later.
40+
// いくつかの routes を定義。
41+
// route 毎、コンポーネントにマップが必要です。
42+
// "component" は 事実上コンポーネントコンストラクタは Vue.extend() 経由で作成されるか、
43+
// または適切なコンポーネントオプションオブジェクトでできます。
44+
// nested routes については後で話します。
4745
router.map({
4846
'/foo': {
4947
component: Foo
@@ -53,10 +51,10 @@ router.map({
5351
}
5452
})
5553

56-
// Now we can start the app!
57-
// The router will create an instance of App and mount to
58-
// the element matching the selector #app.
54+
// app を開始することが出来ます!
55+
// router App のインスタンスを作成し、
56+
// そして #app セレクタでマッチングした要素にマウントします。
5957
router.start(App, '#app')
6058
```
6159

62-
You can also checkout this example [live](http://jsfiddle.net/yyx990803/xyu276sa/).
60+
[live](http://jsfiddle.net/yyx990803/xyu276sa/) の例もチェックアウトできます。

0 commit comments

Comments
 (0)