SvelteKit 1.0 Route Files Explained in 4 Minutes (SvelteKit 1.0 Routing Tutorial)
HTML-код
- Опубликовано: 29 сен 2024
- 🎓 Join my learning platform for module based courses, learning exercises, and more: coderprep.com/
SvelteKit 1.0 routing is an incredibly important part of why SvelteKit is so powerful. Within this routing system there are a bunch of different file names that help determine The 4 route types are +page, +error, +layout, and +server. This video serves as an overview to developers who are getting familiar with SvelteKit, and want to get a general idea as to what files are available to them when developing applications with SvelteKit.
Some code examples come from the docs here: kit.svelte.dev... . Feel free to check them out if you don't prefer a video format.
Business inquiry? Email thecoopercodes@gmail.com
Awesome. Can you please make a concise explanation video for the load / handle / action functions all in one with differences? It's generally hard to wrap your head around until you learn all of them. A video would be nice.
Subscribed for more Sveltekit content 😉
Check out my latest vid if you haven't already! Great intro to sveltekit and TS which may interest you :) Thank you for subscribing and commenting
great viedo Thanks cooper keep up the good work
👍👍
Salah, thank you so much for watching! I appreciate the comment :)
🙏🙏🙏
I really like Sveltekit folder structure, it makes sense and make life so much easier, Sveltekit makes building a fullstack app a pleasant and enjoyable experience 🥰
is this still same in sveltekit 2?
how does this work if i want to have file extensions in my endpoints? in sveltekit the trailingslash is removed by default, so the api endpoint would look like /random-number, and if i were to do /random-number/ would it work? what if i wanted /random-number.js so many questions...
Great stuff, many thanks.
Awesome! Thanks
Brilliant explanations as usual, thank you so much 😃👍