Mate a vue y le dare con html plano

This commit is contained in:
Daniel Cortés
2019-06-20 22:21:24 -04:00
parent 0d30626baa
commit a3a974d750
37 changed files with 1263 additions and 30125 deletions

53
resources/js/app.js vendored
View File

@@ -1,52 +1 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import App from './views/App'
import Hello from './views/Hello'
import Home from './views/Home'
import UserIndex from './views/UserIndex'
import UserEdit from './views/UserEdit'
import NotFound from './views/NotFound'
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/hello',
name: 'hello',
component: Hello,
},
{
path: '/users',
name: 'users.index',
component: UserIndex,
},
{
path: '/users/:id/edit',
name: 'users.edit',
component: UserEdit,
},
{
path: '/404',
name: '404',
component: NotFound,
},
{
path: '*',
redirect: '/404',
}
],
});
const app = new Vue({
el: '#app',
components: { App },
router,
});
console.log('oli');