0👍
The match function accepts a regex, not String. Give indexOf a try:
filterProducts: function() {
return this.products.filter(q => q.name.indexOf(this.userInput) >= 0)
}
- [Vuejs]-How to trigger a function when page is changed in vuejs
- [Vuejs]-How to read object datas to the request in Laravel?
Source:stackexchange.com