Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
podefr opened this Issue · 2 comments

2 participants

Olivier Scherrer Olivier Wietrich
Olivier Scherrer
Owner

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>
Olivier Scherrer podefr was assigned
Olivier Scherrer
Owner

bind should detect an array in the model and react accordingly

Olivier Wietrich
Collaborator

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
Something went wrong with that request. Please try again.