Skip to content

Commit ffa1829

Browse files
authored
Use this.#name in render example
The name variable is `#name` rather than `name`
1 parent c109c27 commit ffa1829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guide/rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class HelloWorldElement extends HTMLElement {
100100
update() {
101101
render(() => html`
102102
<div>
103-
Hello <span>${ this.name }</span>
103+
Hello <span>${ this.#name }</span>
104104
</div>`,
105105
this.shadowRoot!)
106106
}

0 commit comments

Comments
 (0)