0% done with Authentication and Authorization in VueJS
8:16
|
Published on
9/25/2019
|
|
Chapter 8 of 27 in Building VueScreencasts.com
Nested Routes with Vue Router
One way to protect all of our Admin Routes would be to copy the beforeEnter block from the last lesson and paste it in all the protected routes.
A much more efficient method would be to make a parent route (Admin) with the beforeEnter block, then nest all the Admin-related routes that we want to protect under it.
What do others think of VueScreencasts?
"Great work man."
—The Nerdy Dev
"I like the way you explain and teach, also your enunciation is incredible for us 'non native' english persons, everything is so enjoyable... Thank you for putting so much effort and time into making this video knowledge."
—@awa_it_
"Really enjoying these, thank you!"
—Lars Sørensen
"Short, precise, step-by-step, beginner-friendly and clear."
—Naty Java