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

Already on GitHub? Sign in to your account

foreach not on a model, but on a model's value #3

Open
podefr opened this Issue Mar 8, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Owner

podefr commented Mar 8, 2012

ModelPlugin should also allow for looping through a model's value.

Say we have a list of people with 1 to n ways of contacting them.

We should be able to do :

<div data-model="foreach">
  <div>contacts: 
     <ul data-model="foreach:contacts">
          <li></li>
      </ul>
 </div>
</div>

@ghost ghost assigned podefr Mar 8, 2012

Owner

podefr commented Jul 28, 2013

bind should detect an array in the model and react accordingly

Member

bredele commented Jul 28, 2013

Hey @podefr in order to do that you should be able to listen changes on the contacts attributes right? I mean contacts should be a Store itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment