Skip to content

Commit

Permalink
Move contents in index.js to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-wei committed Jul 12, 2015
1 parent 73980ad commit 6fb771f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
11 changes: 11 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -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
},
})
15 changes: 1 addition & 14 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 6fb771f

Please sign in to comment.