Skip to content

Instantly share code, notes, and snippets.

@ammezie

ammezie/app.js Secret

Last active July 31, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammezie/bc7cad2617bd1a60c310ba1736218485 to your computer and use it in GitHub Desktop.
Save ammezie/bc7cad2617bd1a60c310ba1736218485 to your computer and use it in GitHub Desktop.
require('./bootstrap');
import "../sass/chat.sass";
window.Vue = require('vue');
window.axios = require('axios');
window.VueRouter=require('vue-router').default;
const Chat = Vue.component('chat', require('./components/Chat.vue').default);
const Admin = Vue.component('admin', require('./components/AdminChat.vue').default);
Vue.prototype.$baseurl = "https://localhost:8000";
window.router = new VueRouter({
routes:[
{
path: '/',
name: 'chat',
component: Chat,
},
{
path: '/admin',
name: 'admin',
component: Admin,
}
],
})
const app = new Vue({
router,
el: '#app',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment