Skip to content

Commit a76e274

Browse files
authored
Document undefined/null attributes
1 parent b0cafb6 commit a76e274

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/guide/02-template-syntax.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ You can also use tags in attributes:
3939
hideParagraph: false
4040
}
4141
```
42-
[Boolean attributes](https://www.w3.org/TR/html5/infrastructure.html#sec-boolean-attributes) like `hidden` will be omitted if the tag expression evaluates to false.
43-
44-
Sometimes you might want to omit an attribute which is not a boolen attribute, depending on values in data. In that case you may use the spread operator inside a tag. The tag below
42+
[Boolean attributes](https://www.w3.org/TR/html5/infrastructure.html#sec-boolean-attributes) like `hidden` will be omitted if the tag expression evaluates to false. Attributes will be removed from the element if their value is `undefined` or `null`.
4543

4644
```html
4745
<div {...foo}> </div>

0 commit comments

Comments
 (0)