Closed theo-bittencourt closed 1 year ago
<%= component_controller data: {
'my-component-latitude-value': @latitude,
'my-component-longitude-value': @longitude,
} do %>
...
<% end %>
This worked for me.
Apologies, I don't know why I didn't get this notification. That's about what you would have to do to access any ivars in a stimulus controller.
Given the above component, how to access
latitude
andlongitude
values?The
component_controller
helper seems not to accept thedata-x-value
as parameters.