Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Vue Js Filter by Movie or Series Method

i want to create a filter were when the user clicks on the Series Button only series will be shown on the website. screenshot project

Movies:[
      {MovieName: 'La Casa de Papel',rating: 9,type:'Series', imgPath: 'lacasadePapel.png'},
      {MovieName: 'Venom (2018)',rating: 7, type:'Movie', imgPath: 'Venom.png'},
      ]
<div class="NavbarContainer">
    <button>Movies</button>
    <button @click="SerieOrMovie">Series</button>
    <button id="FavoriteBtn">Favorites ({{amountFav}})</button>
    <input type="text" v-model="search" placeholder="Search..">
  </div>
  <div class="MoviesContainer">
    <div class="Movies" v-for="(movie,index) in filteredMovies" :id="index">
      <img class="image_img" :src="require('../assets/MoviesMap/' + movie.imgPath)">
      <div class="image_Overlay">
        <button @click="addedMovie">Add to Favorites</button>
        <button>Watch {{movie.MovieName}}</button>
      </div>
    </div>
  </div>

here is what i tried to do but doesnt work

computed:{
    SerieOrMovie(){
      return this.Movies.filter((Movies) =>{
        return Movies.type.toLowerCase().match('Series')
      })
    },
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Im not sure exactly what you want to accomplice.

This will give you all series:

computed: {
  Series() {
    return this.Movies.filter((Movies) => Movies.type == "Series")
  }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!