I wanted to know if there is a possibility to call 2 methods in a v-for, for example:
I have this code extract
<ul>
<li v-for="t in tareaPrio">
{{t.nombre}}
<small>
({{t.prioridad}})
</small>
</li>
<input type="range" min="0" max="10" v-model="minimo">
<input type="text" placeholder="Tarea que busca" v-model="busqueda">
</ul>
Where v-for="t in "
points to a method called todoPrio, is there the possibility of adding another method?
computed: {
tareaPrio() {
return this.tareas.filter((tarea) => tarea.prioridad >= this.minimo);
},
buscarTarea(){
return this.tareas.filter((tarea) => tarea.nombre.includes(this.busqueda));
},
},
If there was a way to do it, what is it?