This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/basics-10-styling-starting-.../app.js

25 lines
525 B
JavaScript
Raw Normal View History

2021-01-18 22:28:23 +01:00
"use strict";
2021-01-18 22:36:41 +01:00
const app = Vue.createApp({
data() {
return {
boxASelected: false,
boxBSelected: false,
boxCSelected: false,
};
},
methods: {
boxSelected(box) {
if (box === "A") {
this.boxASelected = true;
} else if (box === "B") {
this.boxBSelected = true;
} else if (box === "C") {
this.boxCSelected = true;
}
},
},
});
app.mount("#styling");