Explorar o código

Modify the wrong document

Shaun hai 1 ano
pai
achega
e92335c2ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -73,7 +73,7 @@ A param is denoted by a colon `:`. When a route is matched, the value of its par
 Therefore, we can render the current user ID by updating user's template to this:
 Therefore, we can render the current user ID by updating user's template to this:
 
 
 ```html
 ```html
-<div>User ID: {$router.params.id}</div>
+<div>User ID: <span x-text="$router.params.id"></span></div>
 ```
 ```
 
 
 You can have multiple params in the same route, and they will map to corresponding fields on `$router.params`. Examples:
 You can have multiple params in the same route, and they will map to corresponding fields on `$router.params`. Examples: