Skip to content

Commit 8615e9d

Browse files
authored
Merge pull request #115 from github/example-typo
Fix typo in the `attr` example
2 parents addae2f + 463419a commit 8615e9d

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)