"this" doesnt work without "function" + formatting

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