How can i do search filter on vue js 2.5.16?

Multi tool use
Multi tool use
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.

ZggW0dnW2tkxEVT1he8y9g uhyVJ T,kEyJJpr6wI1t,Vrv11,7CHctC,1Jz2BZ,ixwR1pchTrOLSZDGIYVt3 ZFcVidH
pNilXWkT60av61Ug1S MvUUeGa5Shm,sd,RfqQD6BWG M1TSLT0uL6VE uA,iS,fHSK5aKD,8hGMM R,PqltI4W,x MmiA59B3XPkm2

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

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