Skip to content

Commit b802938

Browse files
tymon3568sorae42
authored andcommitted
Update content/tutorial/03-sveltekit/02-routing/03-params/README.md
Co-authored-by: Sora <[email protected]>
1 parent d6c349f commit b802938

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/03-sveltekit/02-routing/03-params

1 file changed

+1
-1
lines changed

content/tutorial/03-sveltekit/02-routing/03-params/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Route parameters (Tham số đường dẫn)
33
path: /blog
44
---
55

6-
Để tạo các routes (định tuyến) với parameters (tham số) động, sử dụng dấu ngoặc vuông xung quanh một tên biến hợp lệ. Ví dụ, một file như `src/routes/blog/[slug]/+page.svelte` sẽ tạo ra một route phù hợp với `/blog/one`, `/blog/two`, `/blog/three`cứ như vậy.
6+
Để tạo các route với tham số động, ta có thể cho một tên biến vào trong dấu ngoặc vuông. Ví dụ, một tệp như `src/routes/blog/[slug]/+page.svelte` sẽ tạo ra một route phù hợp với `/blog/one`, `/blog/two`, `/blog/three`nhiều hơn nữa.
77

88

99
Chúng ta hãy tạo file đó:

0 commit comments

Comments
 (0)