Can VueJs handle a scenario like this?
Html:
<div class="someStaticClass {{someDynamicClass}}">...</div>
JS:
var app = new Vue({
data: {
someDynamicClass: 'myClassName'
},
mounted: function() {
this.someDynamicClass = 'myOtherClassName';
}
});
I've seen in the VueJs documentation that binding with a JS object is possible, but I'm exploring the option of using an inline variable for simplicity. Thanks!