From 4a6b04e3f692a6c0c784e7d55ba7114913dfccfb Mon Sep 17 00:00:00 2001 From: forresst Date: Mon, 20 Feb 2017 09:50:17 +0100 Subject: [PATCH 1/3] Traduction conditional.md --- src/v2/guide/conditional.md | 102 ++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 527e8f6844..b1fc5238c8 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -1,65 +1,65 @@ --- -title: Conditional Rendering +title: Rendu conditionnel type: guide order: 7 --- ## `v-if` -

**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**

In string templates, for example Handlebars, we would write a conditional block like this: +Dans les templates de chaines, par exemple Handlebars, nous pouvons écrire un bloc conditionnel comme ceci : ``` html - + {{#if ok}} -

Yes

+

Oui

{{/if}} ``` -In Vue, we use the `v-if` directive to achieve the same: +Dans Vue, nous utilisons la directive `v-if` pour obtenir la même chose : ``` html -

Yes

+

Oui

``` -It is also possible to add an "else" block with `v-else`: +Il est également possible d’ajouter un bloc « sinon » avec `v-else` : ``` html -

Yes

-

No

+

Oui

+

Non

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