What have you tried so far? It sounds to me that you just need to loop over that array and compare the two. What is not working for you?
Feb 18, 2018
3
Level 8
Filter in PROPS in vue.js
I have code like below
created () {
EventBus.$on('change',this.formated);
},
props: ['applicants',],
data() {
return {
values: [],
}
},
methods : {
formated (item) {
//some code here
}
}
I have some checkboxes in another component. I am trying to catch values of those checkboxes in this component. After catching those values I would like to filter the props applicants. I would like to find out which applicants have those values of checkboxes. Then I would like to pass them to values[]. Then I would like to iterate those values in HTML.
Please or to participate in this conversation.