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-01-starting-code/app.js

23 lines
475 B
JavaScript
Raw Normal View History

2021-01-18 16:07:55 +01:00
"use strict";
const app = Vue.createApp({
data() {
return {
courseGoal: "Finish the course and learn Vue.",
vueLink: "https://vuejs.org",
};
},
2021-01-18 16:22:14 +01:00
methods: {
outputGoal() {
const randomNumber = Math.random();
if (randomNumber < 0.5) {
return "Learn Vue!";
} else {
return "Master Vue!";
}
},
},
2021-01-18 16:07:55 +01:00
});
app.mount("#user-goal");