0
I’m playing a simple application with Vue.js, when checking some checkbox the options marked are shown in Html, until then it works normal, only the problem is that the brackets of the vector keep appearing tbm. You can’t introduce them.
var app = new Vue({
el: '#app',
data: {
frames: Array()
}
})
<link type="text/css" rel="stylesheet" href="//unpkg.com/bootstrap/dist/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.css"/>
<link rel="stylesheet" href="assets/css/main.css"/>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="app">
<label>QUAIS FRAMEWORKS MAIS GOSTA?</label><br>
<input type="checkbox" value="VUE" v-model="frames">VUE
<input type="checkbox" value="REACT" v-model="frames">REACT
<input type="checkbox" value="ANGULAR" v-model="frames">ANGULAR
<p> Resposta: {{ frames }} </p>
</div>
Thanks man, I hadn’t really thought to use some js method to handle the contents of the array.
– LeAndrade