0
It is currently found like this:
It was supposed to be like this;
I’m having trouble, can someone help me, please?
This is the source code.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Desenvolvido por Wladimir Alves Bandeira</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" >
</head>
<div id="app">
<div class="table">
<div >
<table class="table">
<thead>
<tr>
<th scope="col">Tipo de moeda</th>
<th scope="col">Valor</th>
<th scope="col">Referencia</th>
</tr>
</thead>
<tbody>
<tr v-if="bancodedados" v-for="(val, key) in bancodedados.valores" :key="key">
<td> {{ val.nome }} </td>
<td> {{ val.valor }}</td>
<td>{{ val.fonte }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.4/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/1.3.6/vue-resource.js"></script>
<script >
var app = new Vue({
el: '#app',
data: {
bancodedados: [],
},
methods: {
},
created: function() {
var self = this;
self.$http.get('http://api.promasters.net.br/cotacao/v1/valores').then(function(response) {
self.bancodedados = response.body;
});
},
});
</script>
<style>
</style>
</body>
</html>
It’s the other way around because you’re inheriting all the classes in the Bootstrap 4 table. To solve this you’ll have to encapsulate your table inside a container and override the classes the way you want. If you want I can make a simple model for you.
– hugocsl
show me a model please.
– wladyband