How can i do search filter on vue js 2.5.16?

Multi tool use


How can i do search filter on vue js 2.5.16?
I need a search filter in my vue project. I tried to create "text in texts | filterBy filtername" but this isn't working for latest version vue js. Please help!
1 Answer
1
you cant use the filters in that way, you can use the filter in this way:
in the html : {{ prop | filter}}
in js : this.$options.filters.yourFilter(this.prop);
in html prop : :text="this.$options.yourFilter(prop);"
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Can you please share what you have done yet?
– Tiago Mussi
31 mins ago