github / github/catalyst

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

Aperta
#187 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
@attr
Lingua principale
TypeScript
Stelle
1.4k
Fork
59
Merge medio
22h 12m
PR unite (30g)
5

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.