diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 2221857433..a386525e97 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -1,56 +1,56 @@ --- -title: Conditional Rendering +title: Rendering Bersyarat type: guide order: 7 --- ## `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. +Instruksi `v-if` biasa digunakan untuk melakukan render sebuah blok secara bersyarat. Blok hanya akan di-*render* apabila ekspresi instruksi mengembalikan nilai benar. ``` html -

Vue is awesome!

+

Vue itu mengagumkan!

``` -It is also possible to add an "else block" with `v-else`: +Juga memungkinkan untuk menambahkan "blok else" dengan `v-else`: ``` html -

Vue is awesome!

-

Oh no 😢

+

Vue itu mengagumkan!

+

Oh tidak 😢

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