github / github/catalyst

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

未关闭
#187 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
@attr
主要语言
TypeScript
星标
1.4k
派生
59
平均合并
22 小时 12 分钟
30 天内合并 PR
5

描述

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.

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。