We were missing to add last when broadcasting to cable ready, an attribute that is needed later in javascript. It also didn't transform the keys entirely correctly to camelCase.
Using the inflector library it'll convert data-controller to dataController something that we are not interested in. So we roll our own.
We also make a recursive call so that an entire list or object gets all their keys transformed correctly.
We were missing to add
last
when broadcasting to cable ready, an attribute that is needed later in javascript. It also didn't transform the keys entirely correctly tocamelCase
.Using the inflector library it'll convert
data-controller
todataController
something that we are not interested in. So we roll our own.We also make a recursive call so that an entire list or object gets all their keys transformed correctly.