look at the Javascript code below;
var app = new Vue({
el:'#app',
data:{
bancodedados:[]
},
methods:{
},
created:function(){
var self = this;
self.$http.get('https://swapi.co/api/planets/1/?format=json').then(function(response){
/*console.log(response); */
self.bancodedados = response.data;
});
}
});
This is my page;
<table class="table">
<thead>
<tr>
<th>nome</th>
<th>Title</th>
<th>Nome</th>
</tr>
</thead>
<tbody>
<tr v-for="bancodedado in bancodedados">
<td>{{ bancodedado.name }}</td>
<td>{{ bancodedado.climate }}</td>
<td></td>
</tr>
</tbody>
</table>
What is happening is that it is being able to load all the list but I can not see it as shown below;
Maybetheproblemisinthehtmlcode,Ijustneedtoknowhowtofixit;
==========================================================================
Seewhatappearsonmyconsoles;
gavethisresultwiththiscommand;
console.log(response);
ThatmeanshecanloadtheJsonlogs!
butwiththiscommand;
consoles.log(this.bancodedados);
It'squitedifferent;