Answer the question
In order to leave comments, you need to log in
How to use filters in VUE template?
https://github.com/vuejs/vue/issues/2756 - there is one suggestion here but doesn't work in my case.
using VUE with laravel
//item in posts | findBy 'name - подобный вариант не пашет при использовании файлов с типом blabla.vue
<template>
<li v-for="item in posts | findBy 'name'">{{item.name}}</li>
</template>
<script>
export default {
data(){
return{
btn_txt: "Искать",
posts: []
}
},
...
methods: {
onClick: function () {
console.log('aasdasdsd');
}
}
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question