If you put an attribute in your element, the property associated with it will always be true. For example, in:
<my-element a-property-of-type-boolean='false'></my-element>
a-property-of-type-boolean true.
So, if you want to use the Boolean property for your element, I suggest declaring the property with the default value of false, and then if you need to change the value to true, you can add an element attribute to it.
Your Polymer Prototype:
Polymer({ is: 'my-element', properties: { aPropertyOfTypeBoolean: { type: Boolean, value: false } } });
Your item:
<my-element a-property-of-type-boolean></my-element>
source share