How can i do search filter on vue js 2.5.16?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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!





Can you please share what you have done yet?
– Tiago Mussi
31 mins ago




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.

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty