diff --git a/src/guide/conditional.md b/src/guide/conditional.md index 46dd36c8..c0dad9d4 100644 --- a/src/guide/conditional.md +++ b/src/guide/conditional.md @@ -1,23 +1,23 @@ -# Conditional Rendering +# 条件付きレンダリング ## `v-if` -The directive `v-if` is used to conditionally render a block. The block will only be rendered if the directive's expression returns a truthy value. +`v-if` ディレクティブは、ブロックを条件に応じて描画したい場合に使用されます。ブロックは、ディレクティブの式が真を返す場合のみ描画されます。 ```html

Vue is awesome!

``` -It is also possible to add an "else block" with `v-else`: +これは、`v-else` で "else ブロック" を追加することも可能です: ```html

Vue is awesome!

Oh no 😢

``` -### Conditional Groups with `v-if` on `