I am learning web components using Polymer. I am a beginner in web development.
How can I understand what does dot notation means in .checked attributes or property of HTML element?
<input id="state" type="radio" name=${this.group} .checked=${this.checked} />
Overall the binding type consists of these character prefixes: .prop, ?optional and @event.
html`<input
id="state"
type="radio"
name=${this.group}
@change=${onChange}
?required=${required}
.checked=${this.checked} />`
You can insert JavaScript expressions as placeholders for HTML text content, attributes, Boolean attributes, properties, and event handlers.
<p>${...}</p><p id="${...}"></p>?disabled="${...}".value="${...}"@event="${...}"lit-element documentation
Live Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With