Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDF committed May 14, 2020
1 parent 9c77500 commit 8298ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ This will add or remove the `disabled` attribute when `myVar` is true or false r

Boolean attributes are supported as per the [HTML specification](https://html.spec.whatwg.org/multipage/indices.html#attributes-3:boolean-attribute), for example `disabled`, `readonly`, `required`, `checked`, `hidden`, `selected`, `open` etc.

**`x-bind` with `null` to denote attribute removal
**`x-bind` with `null` to denote attribute removal**

For attributes that aren't standard boolean attributes (per the HTML spec, see previous section). It's still possible to mark the attribute for _removal_ when it gets passed `null`. This is in contrast to the regular behaviour where the attribute is set to whatever value it's bound to (even falsy values `false`, `undefined`, `0` etc).

Expand Down

0 comments on commit 8298ca6

Please sign in to comment.