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.
For attributes, I define in the markup
data-my-attr-nameand in the controller as@attr myAttrNameFor 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 myTargetsNameI think it would be nice (more consistent?) if the markup could support kebab-case.