You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/guide/02-template-syntax.md
+1-3
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,7 @@ You can also use tags in attributes:
39
39
hideParagraph: false
40
40
}
41
41
```
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`.
0 commit comments