"this" doesnt work without "function" + formatting
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user