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.
2021-01-18 17:16:42 +01:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const app = Vue.createApp({
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
person: {
|
|
|
|
name: "Max Muster",
|
|
|
|
age: 32,
|
|
|
|
ageInFiveYears() {
|
|
|
|
return this.age + 5;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
imageUrl:
|
|
|
|
"https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/Feral_cat_Virginia_crop.jpg/1200px-Feral_cat_Virginia_crop.jpg",
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
randomNumber() {
|
|
|
|
return Math.random();
|
|
|
|
},
|
|
|
|
ageInFiveYears(age) {
|
|
|
|
return age + 5;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
app.mount("#assignment");
|