Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I add option 2?

how to add one more data.channelTitle like data.title

computed: {
  filteredVideo() {
   return this.videos.filter(data => {
    return data.title.toLowerCase().includes(this.search.toLowerCase())
  })
}},

Like this:
https://codepen.io/AndrewThian/pen/QdeOVa

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The question is vague so I assume you want to filter the list on basis of data.title as well as data.channelTitle as well. If that’s the case then,
add

data.title.toLowerCase().includes(this.search.toLowerCase()) || 
    data.channelTtile.toLowerCase().includes(this.search.toLowerCase())

This will filter out only if both the conditions(data.title and data.channelTtile) fail to match with this.search.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading