github / github/catalyst

Allow definition of targets in kebab-case but access via camelCase

Offen
#187 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
@attr
Vorherrschende Sprache
TypeScript
Sterne
1.4k
Forks
59
Ø Merge
22 Std. 12 Min.
Gemergte PRs (30 T.)
5

Beschreibung

For attributes, I define in the markup `data-my-attr-name` and in the controller as `@attr myAttrName`

For targets however, I have to define the target name in both the markup and the controller using camelCase:
`data-targets="my-controller.myTargetsName"` and `@targets myTargetsName`
I think it would be nice (more consistent?) if the markup could support kebab-case.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the target-name handling and the existing attribute conversion behavior. Compare the markup examples for kebab-case and camelCase, then add coverage showing that a kebab-case target can be accessed through the camelCase controller property; done means both forms work consistently.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.