From 6fb771feddd7a7874e046c63a1ee75c2b5d57ac2 Mon Sep 17 00:00:00 2001 From: yang-wei Date: Sun, 12 Jul 2015 15:09:42 +0900 Subject: [PATCH] Move contents in index.js to app.js --- src/app.js | 11 +++++++++++ src/index.js | 15 +-------------- 2 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 src/app.js diff --git a/src/app.js b/src/app.js new file mode 100644 index 0000000..2b5a4a1 --- /dev/null +++ b/src/app.js @@ -0,0 +1,11 @@ +import Vue from 'vue' +import itemsView from './view/items-view' + +//Vue.config.debug = true + +new Vue({ + el: '#app', + components: { + 'items-view': itemsView + }, +}) \ No newline at end of file diff --git a/src/index.js b/src/index.js index b822653..9acc8ef 100644 --- a/src/index.js +++ b/src/index.js @@ -1,14 +1 @@ -import Vue from 'vue' -import itemsView from './view/items-view' - -Vue.config.debug = true - -// view -window.app = new Vue({ - el: '#app', - components: { - 'items-view': itemsView - }, -}) - - +require('./app') \ No newline at end of file