Outlet name must be same as controller name
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.1k
- Forks
- 441
- PR merge metrics
- No merged PRs in 30d
Description
in https://github.com/hotwired/stimulus/blob/af88dbf16ddb4c86cb2d10dcefffc92d9da43de8/src/core/outlet_set.ts#L69 is checked , if outlet name is in controller attributes.
its means that outlet name must be same as controller name. Its this correct?
this code dont work because outlet name is diferent as controller name
https://codepen.io/tito100/pen/VwGBmoZ
If its this correct behavior, please add it to documentation.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/core/outlet_set.ts around line 69 and reproduce the behavior using the linked CodePen example. Determine whether outlet names are required to match controller names, then document the confirmed naming rule and verify that the example's behavior is explained accurately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100