tmimicus
tmimicus

Reputation: 184

Emberjs - Binding parameters dynamically to a view

I am trying to create editable views for a select group of parameters in my models.

The jsfiddle is worth a thousand words!

As you can see, it is linking the content to the actual string - not the path, as in the working (but not dynamic) second ParameterView.

I've seen this post, but it is an extremely clunky solution, especially when I have about 20 or so parameters per model, with four different models.

Any ideas? Thanks in advance for sharing your brain power.

Upvotes: 1

Views: 793

Answers (1)

sly7_7
sly7_7

Reputation: 12011

Not sure I understand well, does it work for you ? http://jsfiddle.net/Sly7/ZVFH2/9/

Update

I think I found a way to do this, by defining binding at runtime, using the bind() function.

see: http://jsfiddle.net/Sly7/ZVFH2/34/

Upvotes: 3

Related Questions