N
N
nvdfxx2018-12-04 09:32:38
Vue.js
nvdfxx, 2018-12-04 09:32:38

Why is the list received by api not rendered?

I decided to file a test project with some third-party api. The choice fell on wargaming open api, because it is quite complicated, has a bunch of endpoints and a system like oAuth.
Task: using axios I send a get request, I get a response perfectly, in which an array of objects, but it does not render normally in v-for for some reason, help
https://codepen.io/nvdfxx/pen/dQLZvr

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2018-12-04
@nvdfxx

Why do you need vue version 1? Take it fresher, everything will be okay.

V
Victor L, 2018-12-04
@Fzero0

well, you are probably iterating over an object and not an array

<div class="result">
    <ul>
      <li :key="i" v-for="(item, i) in response">{{i["nickname"]}}</li>
    </ul>
  </div>

5c0625b999d05233344612.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question