mardi 25 juin 2019

Can we use laravel blade templates in vue routing instead of vue components?

is it possible to use laravel blade templates instead of vue components to route using vue routing? i want to route my blade files without page refreshing as we do in Spa using vue routing.

import App from './views/App' import Hello from './views/Hello' import Home from './views/Home' const router = new VueRouter({ mode: 'history',

routes: [
    {
        path: '/',
        name: 'home', 
        component: Home //Vue Component
    },
    {
        path: '/hello',
        name: 'hello',
        component: Hello, //Vue Component
    },
],

});

i want to use blade files instead of vue components that i have made named as home and hello



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2NmACGS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire