From ef7c574498503b739dc5b135024bbfbc979ab826 Mon Sep 17 00:00:00 2001 From: DevPlus31 Date: Mon, 24 Sep 2018 23:02:55 +0100 Subject: [PATCH 1/2] register RadSideDrawer to Vue --- template/app/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/app/main.js b/template/app/main.js index d80a587..aa0d0ec 100644 --- a/template/app/main.js +++ b/template/app/main.js @@ -9,6 +9,10 @@ if(TNS_ENV !== 'production') { // Prints Vue logs when --env.production is *NOT* set while building Vue.config.silent = (TNS_ENV === 'production') +{{#if_eq preset "SideDrawer"}} +Vue.registerElement('RadSideDrawer', () => require('nativescript-ui-sidedrawer').RadSideDrawer) +{{/if_eq}} + new Vue({ render: h => h('frame', [h(App)]) }).$start() From 2719d523eec76b5fedf1150c57843d0b9d19b7a7 Mon Sep 17 00:00:00 2001 From: DevPlus31 Date: Tue, 25 Sep 2018 18:47:28 +0100 Subject: [PATCH 2/2] added an apostrophe at the end of the import line --- template/app/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/app/main.js b/template/app/main.js index e56a953..d5ca98b 100644 --- a/template/app/main.js +++ b/template/app/main.js @@ -1,6 +1,6 @@ import Vue from 'nativescript-vue' import App from './components/App' -import './styles.scss +import './styles.scss' {{#devtools}}import VueDevtools from 'nativescript-vue-devtools' if(TNS_ENV !== 'production') {