From daa02e8250ae3ce87ba030f7aea5b3c632a55327 Mon Sep 17 00:00:00 2001 From: noriaki-yamada Date: Mon, 21 Sep 2020 01:02:07 +0900 Subject: [PATCH] translate Essentials > Conditional Rendering --- src/guide/conditional.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) 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 `