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

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

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

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

podefr opened this issue Mar 8, 2012 · 2 comments
Assignees
Milestone

Comments

@podefr
Copy link
Member

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
@podefr
Copy link
Member Author

podefr commented Jul 28, 2013

bind should detect an array in the model and react accordingly

@bredele
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants