Tahsan
1 month ago
156
4
Vue

vue data not display

Posted 1 month ago by Tahsan

view move.vue

        <tr v-for="movie in movies" v-bind:key="movie.id">
                    <td>{{ movie.1 }}</td>
                    <td>{{ movie.title }}</td>
                    <td><a href="{{ movie.list[key].url }}">Click</a></td>
                </tr>

I have json file like below:

[
   
    {
         "title":"first move",
        "list":[
            {
                "url":"test.com",
                "id":0
            },
            {
                "url":"test-1.com",
                "id":1
            },
            {
                "url":"test-2.com",
                "id":2
            }
        ],
        "id":1
    },
    {
        "title":"second move",
        "list":[
            {
                "url":"test.com",
                "id":0
            },
            {
                "url":"test-1.com",
                "id":1
            },
            {
                "url":"test-2.com",
                "id":2
            }
        ],
        "id":2
    }
]

where is the problem on it?

Please sign in or create an account to participate in this conversation.