1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00
not-gwent-online/site/client/app/app.js

24 lines
399 B
JavaScript
Raw Normal View History

2015-06-21 11:09:29 +00:00
var Vue = require('vue');
var router = require('./routes');
Vue.use(require('vue-resource'));
Vue.http.headers.common['X-CSRF-TOKEN'] = $('.token').attr('content');
var app = new Vue({
el: 'body',
data: {
name: '',
view: '',
section: ''
},
components: {
2015-06-21 14:34:27 +00:00
lobby: require('./components/lobby'),
navigation: require('./components/navigation')
2015-06-21 11:09:29 +00:00
}
});
router.init(app);