Open catmando opened 6 years ago
the following works with data and aria tags:
Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng") can be written as Comp(data: {foo_bar: 12, baz_woggle: "strng")
Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng")
Comp(data: {foo_bar: 12, baz_woggle: "strng")
In otherwords data attributes can be provided as a hash, and snake case will be dasherized automatically.
Also works with aria attributes
aria
the following works with data and aria tags:
Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng")
can be written asComp(data: {foo_bar: 12, baz_woggle: "strng")
In otherwords data attributes can be provided as a hash, and snake case will be dasherized automatically.
Also works with
aria
attributes