Closed klebba closed 6 years ago
Example:
<my-element foo="${bar}"></my-element>
When foo has a property definition with type Boolean, Polymer would render this binding as:
foo
Boolean
<my-element foo></my-element>
When bar is truthy. Otherwise foo is removed. This is a necessary behavior for CSS selectors like:
bar
<style> :host([foo]) { color: red; } </style>
Yes, I should fix that.
The following would be correct <div foo> or <div foo=""> or <div foo="foo"> or case-insensitive and single quotes/unquoted variations.
<div foo> or <div foo=""> or <div foo="foo">
Example:
When
foo
has a property definition with typeBoolean
, Polymer would render this binding as:<my-element foo></my-element>
When
bar
is truthy. Otherwisefoo
is removed. This is a necessary behavior for CSS selectors like: