how to assign a dynamic parameter in an array in the computed method and mapState

thank you very much yes indeed we can not access this in mapState here is the functional solution:

data() {
    return {
    // -1 because the aftermovie index is 1 and the index in the array starts at 0
      id: this.$ - 1
      aftermovies: (state) => state.festival.aftermovies

and finally to access the data

    <div class="container text-center">
        {{ aftermovies[].id }}
        {{ aftermovies[].name }}
        {{ aftermovies[].video }}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top