"this" doesnt work without "function" + formatting

This commit is contained in:
klemek
2019-12-06 18:43:52 +01:00
parent 5ad9dee161
commit f1b4aad544
+2 -4
View File
@@ -86,10 +86,8 @@ let app = {
title: 'Vue-Boilerplate',
content: 'Fill this page with <i>whatever</i> you\'re going to develop.<br><b>Then enjoy!</b>'
},
methods: {
},
'mounted': () => {
methods: {},
'mounted': function () {
const self = this;
console.log('app mounted');
setTimeout(() => {