X Tutup
Skip to content

Add more docs to 2.x that were present in 1.x#7277

Open
janechu wants to merge 2 commits intomainfrom
users/janechu/add-docs-from-1x-to-2x
Open

Add more docs to 2.x that were present in 1.x#7277
janechu wants to merge 2 commits intomainfrom
users/janechu/add-docs-from-1x-to-2x

Conversation

@janechu
Copy link
Collaborator

@janechu janechu commented Feb 26, 2026

Pull Request

📖 Description

  • Add doc on reactivity (previously observables and state in 1.x)
  • Add in content binding docs in the html templates in 2.x docs

👩‍💻 Reviewer Notes

This fills a few gaps present in the 2.x documentation.

✅ Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

…ontent binding docs in the html templates in 2.x docs
@janechu janechu force-pushed the users/janechu/add-docs-from-1x-to-2x branch from 026e9c3 to 2d0f8c1 Compare February 27, 2026 18:26

:::tip
Using the `children` directive on the `template` element will provide you with references to all Light DOM child nodes of your custom element, regardless of if or where they are slotted.
:::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a note or tip about how the host directive resolve conflicts? i.e. when the same attributes are defined by component author and component user. In the example case, what happens if the user also adds role attribute to <my-progress>.

```

:::note
Dynamic content is set via the `textContent` HTML property for security reasons. You *cannot* set HTML content this way. See the Properties binding section for the explicit, opt-in mechanism for setting HTML via `:innerHTML`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we link to “Properties binding section”?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup