Skip to content

Commit 00a1310

Browse files
committed
clarify falsy conditions for attribute description
1 parent 860e624 commit 00a1310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/syntax.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ It also works for boolean attributes - the attribute will be removed if the cond
5454
<button v-bind:disabled="isButtonDisabled">Button</button>
5555
```
5656

57+
This will be removed if the value is `null`, `undefined`, or `false`. `0` and `NaN` will still be displayed.
58+
5759
### Using JavaScript Expressions
5860

5961
So far we've only been binding to simple property keys in our templates. But Vue.js actually supports the full power of JavaScript expressions inside all data bindings:

0 commit comments

Comments
 (0)