import Vue from 'vue';
import VueRouter from 'vue-router';
import VueStrap from 'vue-strap';

Vue.config.debug = true;

import AppComponent from './components/app-component/app-component';

new Vue({
    el: '#app',
    components: {
        'app-component': AppComponent
    },
    data: {}
});

import Vue from 'vue';
import VueResource from 'vue-resource';
import VueRouter from 'vue-router';
import VueStrap from 'vue-strap';

Vue.config.debug = true;
Vue.use(VueResource);

import AppComponent from './components/app-component/app-component';

new Vue({
    el: '#app',
    components: {
        'app-component': AppComponent
    },
    data: {},
    http: {
        root: '/api',
        headers: {
            Authorization: 'Basic YXBpOnBhc3N3b3Jk'
        },
        options: {
            emulateJSON: true,
            emulateHTTP: true
        }
    }
});

Update main.js