I'm building a simple Vue.js page and my HTML snippet is as follows:
<div id="vueApp">
<a href="#" class="button is-outlined" @click="showNextDiv" >Show Div</a>
<div class="modal animated fadeIn" v-bind:class="{ is-active: isActive }">
...
</div>
</div>
I'm using the Bulma CSS Framework and the "is-active" modifier makes the div active (as the name suggests).
My problem is that whenever I load the page the <div id="vueApp">
does not show up neither does the button that makes isActive turn true.
This is my vue instance declaration:
new Vue({
el: '#vueApp',
data: {
isActive: false
},
methods: {
showNextDiv: function(){
this.isActive = true;
}
}
});