Skip to content

Commit 0e95fff

Browse files
committed
docs: clarify Element suffix dropping in docs
1 parent 9b9ea51 commit 0e95fff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/_guide/your-first-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class MyController extends HTMLElement {
4141
```
4242
<br>
4343

44-
Catalyst will automatically "dasherize" the class name. All capital letters get lowercased and dash separated.
44+
Catalyst will automatically convert the classes name; removing the trailing `Element` suffix and lowercasing all capital letters, separating them with a dash.
4545

46-
By convention, Catalyst controllers end in `Controller`, but it's not required.
46+
By convention, Catalyst controllers end in `Element`, and Catalyst will strip this for the tag name, but suffixing `Element` is not required. All examples in this guide use `Element` suffixed names.
4747

4848
#### What about without Decorators?
4949

0 commit comments

Comments
 (0)