Skip to content

Commit 463419a

Browse files
authored
Fix typo in the attr example
It looks like there's a typo in the example and it should be `this.name` instead of just `name`
1 parent addae2f commit 463419a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guide/attrs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ import { controller, attr } from "@github/catalyst"
165165
class HelloWorldElement extends HTMLElement {
166166
@attr name = 'World'
167167
connectedCallback() {
168-
this.textContent = `Hello ${name}`
168+
this.textContent = `Hello ${this.name}`
169169
}
170170
}
171171
```

0 commit comments

Comments
 (0)