Stimulus Discourse

Why the controller name is repeated in data-action and data-target?


#1

Why the controller name is repeated in data-action and data-target? Could it be deduced from the controller-name?


#2

You can have multiple controllers assigned in data-controller, and you can have nested controllers. See this example: https://stimulusjs.org/reference/targets#multiple-targets