Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple list binding problem #52

Closed
brenden opened this Issue · 2 comments

2 participants

@brenden

I am trying to bind an array of names to the entries in list A, but not to list B.

<div>
  <ul id="A">
    <li data-bind="names"></li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>
var data = {names: ['woody allen', 'wu tang clan']};
map.where('data-bind').is('names').to('names');
plates.bind(html, data, map);

Expected output:

<div>
  <ul id="A">
    <li data-bind="names">woody allen</li>
    <li data-bind="names">wu tang clan</li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>

Actual output:

<div>
  <ul id="A">
    <li data-bind="names">woody allen</li>
  </ul> 
  <ul id="B">
    <li></li>
    <li data-bind="names">wu tang clan</li>
  </ul> 
  <ul id="B">
    <li></li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>

If I remove list B, the data gets bound to list A properly. Any thoughts on what is happening?

Thanks

@pksunkara

Yes, this is similiar to #47. We are working on it.

@pksunkara

Closed due to issue being duplicate

@pksunkara pksunkara closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.