Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple list binding problem #52

Closed
brenden opened this issue Mar 30, 2012 · 2 comments
Closed

Multiple list binding problem #52

brenden opened this issue Mar 30, 2012 · 2 comments

Comments

@brenden
Copy link

brenden commented Mar 30, 2012

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
Copy link
Contributor

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

@pksunkara
Copy link
Contributor

Closed due to issue being duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants