vuejs / Discussion

Vue.js discussion
167 stars 17 forks source link

Select checkbox where conditions met. #487

Open devolper102 opened 8 years ago

devolper102 commented 8 years ago

I have the list of users and I want to show the checkboxes selected if the user.id = people.user_id.How can I do this.It shows me checkboxes repeated.

`

    </div>`
ben-pelletier commented 8 years ago

Did you every find a way to achieve something like this?

ben-pelletier commented 8 years ago

I ended up using something like this selected="{{ varA == varB ? 'true' : undefined }}"