@mattmcmanus wrote:
Hey Folks,
So I’d like to be able to take an object that I have, eg
test = { foo: 'bar', hobbit: 'narnia' }
and pass it, splattribute style, to the component helper:{{component ...test}}
. This being the equivalent of{{component foo='bar' hobbit='narnia'}}
. I can’t quite figure out the best approach though.I came across this stackoverflow post from a couple years ago, but I’m curious about what is the best way to do that in the Octane world of octane, angle brackets and splattributes.
Thanks!
Posts: 5
Participants: 4