Visitar URL original
Clarification on Property Binding (.) in Custom Elements · Issue #1402 · lit/lit.dev · GitHub
Skip to content

Clarification on Property Binding (.) in Custom Elements #1402

Open

Description

@Realrubr2

Hi,

I've read through the documentation but haven't been able to find a clear explanation of how to access property values using the . syntax inside a custom element.

Is this behavior explicitly documented anywhere? I only discovered it through ChatGPT, which referenced a YouTube video, but I would really like to read the official documentation on this.

Thank you!

Activity

  1. sorvell commented on Feb 25, 2025

    @sorvell
    Member
    this.propertyName

    Custom elements are just classes that extend from HTMLElement. You can read about how Javascript classes work here.

  2. e111077 commented on Feb 26, 2025

    @e111077
    Collaborator

    Hello, we have the following docs here:

    https://lit.dev/docs/templates/expressions/#property-expressions

    Did you use the site search for this? If so, can you tell me what you searched for so I can update our site search to include those terms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions