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: documentation/docs/02-template-syntax/02-basic-markup.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,9 @@ All other attributes are included unless their value is [nullish](https://develo
56
56
57
57
An expression might include characters that would cause syntax highlighting to fail in regular HTML, so quoting the value is permitted. The quotes do not affect how the value is parsed:
58
58
59
+
<!-- prettier-ignore -->
59
60
```svelte
60
-
<button disabled={number !== 42}>...</button>
61
+
<button disabled="{number !== 42}">...</button>
61
62
```
62
63
63
64
When the attribute name and value match (`name={name}`), they can be replaced with `{name}`.
0 commit comments