Answer the question
In order to leave comments, you need to log in
Is it possible to propagate meta tags ("guards") to all child components/pages in vue-router?
Good afternoon dear ones. I often found useful solutions for my small developments on your site, but now it's time to ask for advice.
I'm trying to learn vue.js in conjunction with laravel. Essence of the question. Is it possible not to prescribe meta tags in each child element - requireAuth, etc.?
{
name:'admin',
path:'/admin',
component:admin,
meta: { requiresAuth: true , adminAuth:true , userAuth : false},
children: [
{
name:'test1',
path:'test1',
component:test1,
// meta: { requiresAuth: true , adminAuth:true , userAuth : false}
},
{
name:'test2',
path:'test2',
component:test2,
meta: { requiresAuth: true , adminAuth:true , userAuth : false}
},
]
},
Answer the question
In order to leave comments, you need to log in
Is it possible not to prescribe meta tags in each child element - requireAuth, etc.?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question