Skip to content

Commit

Permalink
Improve HAML stimulus template
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Jul 20, 2018
1 parent 78cc0a7 commit 5a18723
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.<%= component_class_name %>{'data-controller': "<%= component_class_name %>"}
.<%= component_class_name %>{ data: { controller: '<%= component_class_name %>' } }
<%- if locale? -%>
= t ".component_name"
<%- else -%>
Expand Down

0 comments on commit 5a18723

Please sign in to comment.