Allow definition of targets in kebab-case but access via camelCase
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 59
- Merge trung bình
- 22 giờ 12 phút
- Pull request đã merge (30 ngày)
- 5
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100