hotwired / hotwired/stimulus

Outlet name must be same as controller name

Open
#669 13 comments 24 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.