Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Is there an equivelent of splattributes for the {{component}} helper?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles