This is a migrated thread and some comments may be shown as answers.

Strange binding

1 Answer 26 Views
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 10 Jun 2012, 05:03 PM
Hello,

i'd like using data-binding attribute into a template but the data object that's bound to an html tag is not correctly associated.

for exemple:
Simple binding: http://jsfiddle.net/rKQDM/7/
More complex (expressions & events): http://jsfiddle.net/rKQDM/5/

What's wrong?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 10 Jun 2012, 06:45 PM
So, when you add a div the index of the collection change, you'll see it :
Working: http://jsfiddle.net/rKQDM/9/
Not working with adding a div tag: http://jsfiddle.net/rKQDM/8/

It's normal ?
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Vladimir
Top achievements
Rank 1
Share this question
or