Coding Shorts: Nuxt without Nuxt - Paged Based Routing and Layouts

  Рет қаралды 321

Shawn Wildermuth

Shawn Wildermuth

Күн бұрын

After the first video in this series using unplugin's auto routing, I found out it was incompatible with several of these other plugins. So, in try 2, I show you how to use page-based routing and layouts in your Vue projects. Let's see how it works!
My new Vue 3 course is starting April 2nd. See more here:
- shawnl.ink/paced-vue
00:00 Introduciton
02:24 The Project
03:31 Adding the Pages Plugin
05:10 Modifying the Routes
05:42 Parameterized Routes
07:45 Adding Metadata
09:13 Layouts
12:51 Wrapping Up
If you like this video, you might like other videos in my Instructional Videos:
- • Instructional Videos
Source code:
github.com/shawnwildermuth/co...

Пікірлер: 7
@geraldmaale
@geraldmaale 4 ай бұрын
I will definitely give this a try. I get annoyed with the build time of nuxt but wanted to enjoy the benefits of pages and layouts as well.
@swildermuth
@swildermuth 4 ай бұрын
The next video is showing how to add auto components and auto imports too. We're only 1/2 way there ; )
@willcrowther4456
@willcrowther4456 4 ай бұрын
I really like this direction with the page based routing. Can you give more details about the issues you ran into with the unplugin-vue plugins you were showing in the first demo? I added it to my sample app and it seems to be working working great for me.
@swildermuth
@swildermuth 4 ай бұрын
The unplugin-vue version used nested routing for nested folders, and the Layout plugin wasn't setup for that so layout were being nested too (so doubling layouts).
@willcrowther4456
@willcrowther4456 4 ай бұрын
@@swildermuth Ok. I needed nested routing and think that is a necessity to a good general solution. Just adding a wrapper with a slot on the pages where it is needed so not sure a Layout component is actually needed.
@codedjango
@codedjango 4 ай бұрын
I wish vite has something like this for ssr....I hate using nuxt just for ssr sake
@swildermuth
@swildermuth 4 ай бұрын
Like this: vitejs.dev/guide/ssr
Coding Shorts: Adding HTTP Cache Headers to Your ASP.NET Core Project
11:59
Coding Shorts: .NET Aspire - The Host
13:32
Shawn Wildermuth
Рет қаралды 2,1 М.
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 31 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 154 МЛН
Coding Shorts: Methods, Funcs & Actions...Oh, My!
11:02
Shawn Wildermuth
Рет қаралды 2,2 М.
Routing and Lazy Loading with Standalone Components
11:07
Deborah Kurata
Рет қаралды 16 М.
Making an Entity Component System for my game engine
4:50
3 Must Know Tips For Nuxt.js Developers
9:23
Program With Erik
Рет қаралды 7 М.
Coding Shorts: DaisyUI
15:56
Shawn Wildermuth
Рет қаралды 1 М.
Coding Shorts: C# Dialects and Idioms
19:13
Shawn Wildermuth
Рет қаралды 3,1 М.
Coding Shorts #102: Using SQL Server Containers for Dev
11:00
Shawn Wildermuth
Рет қаралды 2 М.
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 52 М.
Худший продукт Apple
0:53
Rozetked
Рет қаралды 158 М.
Что не так с яблоком Apple? #apple #macbook
0:38
Не шарю!
Рет қаралды 446 М.
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 392 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,8 МЛН