From 070d9f7d9bdd85313b74f6572b0c2033ac0afe7f Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Sun, 13 Dec 2020 06:30:12 +0000 Subject: [PATCH] fix: explain how to omit dynamic attributes --- src/guide/template-syntax.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/guide/template-syntax.md b/src/guide/template-syntax.md index 0ee1f9809e..25a15fcf3b 100644 --- a/src/guide/template-syntax.md +++ b/src/guide/template-syntax.md @@ -49,13 +49,15 @@ Mustaches cannot be used inside HTML attributes. Instead, use a [`v-bind` direct
``` -In the case of boolean attributes, where their mere existence implies `true`, `v-bind` works a little differently. In this example: +If the bound value is `null` or `undefined` then the attribute will not be included on the rendered element. + +In the case of boolean attributes, where their mere existence implies `true`, `v-bind` works a little differently. For example: ```html ``` -If `isButtonDisabled` has the value of `null` or `undefined`, the `disabled` attribute will not even be included in the rendered `