17 lines
243 B
JavaScript
17 lines
243 B
JavaScript
var app = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
attachRed: false,
|
|
attachGreen: false,
|
|
attachBlue: true
|
|
},
|
|
computed:{
|
|
divClasses(){
|
|
return {
|
|
red: this.attachRed,
|
|
blue: !this.attachRed
|
|
}
|
|
}
|
|
}
|
|
});
|