File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ If you need to use a specific element name that doesn't match your class name (f
3838``` js
3939import {controller } from ' @github/catalyst'
4040
41- @controller (' happy -widget' )
41+ @controller (' hello -widget' )
4242class SomeClass extends HTMLElement {
4343 connectedCallback () {
44- this .innerHTML = ' Hello from happy -widget!'
44+ this .innerHTML = ' Hello from hello -widget!'
4545 }
4646}
4747```
4848<br >
4949
50- This will register the element as ` <happy -widget> ` regardless of the class name. This is particularly useful when:
50+ This will register the element as ` <hello -widget> ` regardless of the class name. This is particularly useful when:
5151- Your production build minifies class names
5252- You want explicit control over the element name
5353- The class name doesn't follow the naming pattern required for automatic naming
You can’t perform that action at this time.
0 commit comments