Skip to content

should initialized props in new element#30

Open
huodoushigemi wants to merge 2 commits into
ryansolid:masterfrom
huodoushigemi:master
Open

should initialized props in new element#30
huodoushigemi wants to merge 2 commits into
ryansolid:masterfrom
huodoushigemi:master

Conversation

@huodoushigemi

Copy link
Copy Markdown

This helps frameworks such as Vue to detect element props

https://vuejs.org/guide/extras/web-components.html#passing-dom-properties

e.g

const elem = new TestElem();

expect('name' in elem).toBe(true)

@huodoushigemi

Copy link
Copy Markdown
Author

@ryansolid

@huodoushigemi

huodoushigemi commented Nov 1, 2024

Copy link
Copy Markdown
Author

🎃

Hey, buddy, this change has passed the test

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.

1 participant