简体   繁体   中英

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!

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);"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM