Skip to content

Commit 4784d76

Browse files
committed
Update docs to recommend explicit controller names
1 parent c3891bc commit 4784d76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Use Catalyst for component behaviors:
135135
```typescript
136136
import {controller, target} from '@github/catalyst';
137137

138-
@controller
138+
@controller('my-component')
139139
class MyComponentElement extends HTMLElement {
140140
@target button: HTMLElement
141141

docs/contributors/adding-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Catalyst has `controller` and `target` decorators which you have to import from
4949
```ts
5050
import {controller, target} from '@github/catalyst';
5151

52-
@controller
52+
@controller('my-component')
5353
class MyComponentNameElement extends HTMLElement {
5454
@target button: HTMLElement
5555
}

0 commit comments

Comments
 (0)