Replies: 1 comment
-
|
Great question! I'd love to hear from the rest of the team why these exist over using standard Stimulus values. I know one benefit is that we expose new properties like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was just wondering, is there a specific reason to use Bridge attributes (
data-bridge-foo) instead of Stimulus values (e.g.data-bridge-controller-name-foo-value). Now that I type it out, I guess one small benefit is that the attribute name can be shorter, but it is also nice to declare all stimulus values at the top and have them be available automatically. Overall they seem to be two things which do roughly the same thing but in different ways, so I'm curious if there's any advantages to using Bridge attributes specifically. Thanks!Beta Was this translation helpful? Give feedback.
All reactions