[Vuejs]-How to use VueJS to highlight an item in a list

0👍

I’m new to Vue.JS myself, but could you not add another property to you playlist-item component that indicates whether that item is currently playing (active)?

<li v-for="(song, index) in playlist" is="playlist-item" :text="song.filepath" :active="index == playlistCurrentlyPlaying">

Leave a comment