Skip to content

Commit

Permalink
typo in ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDF committed May 14, 2020
1 parent 8298ca6 commit 4eb51d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -266,7 +266,7 @@ Boolean attributes are supported as per the [HTML specification](https://html.sp
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).

For example:
`<a x-bind:href="enabled ? link | null"></a>`
`<a x-bind:href="enabled ? link : null"></a>`

This will completely remove the `href` attribute when `enabled` is false but set it to the value of `link` when enabled is true.

Expand Down

0 comments on commit 4eb51d9

Please sign in to comment.