From 5ad9dee1618fac65e6e719a9f7badaa9f58a36fa Mon Sep 17 00:00:00 2001 From: klemek Date: Fri, 6 Dec 2019 18:43:16 +0100 Subject: [PATCH] changed init to use $el --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index e90e568..d68a0a1 100644 --- a/main.js +++ b/main.js @@ -90,9 +90,10 @@ let app = { }, 'mounted': () => { + const self = this; console.log('app mounted'); setTimeout(() => { - document.getElementById('app').setAttribute('style', ''); + self.$el.setAttribute('style', ''); }); } };