Created
October 25, 2016 01:01
-
-
Save shunwitter/8c7c28f00da4920f3a06f6c55b3727c8 to your computer and use it in GitHub Desktop.
Vuejs Simple Convention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Vue = require('vue') | |
const App = require('./components/App.vue') | |
// Convention: Global object for events | |
window.eventHub = new Vue() | |
new Vue({ | |
el: '#my-app', | |
components: { | |
app: App, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment