We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662c422 commit bbff2d1Copy full SHA for bbff2d1
README.md
@@ -41,7 +41,16 @@ In your views, you can now use the x-query-string directive.
41
42
```html
43
<div x-data="{ selected: 'option' }" x-query-string.param="selected">
44
- <!-- -->
+ <!-- When `selected` changes ?param=value will be appended to the url -->
45
+ <!-- Visiting this page with ?param=value will set `selected` to `value` -->
46
+</div>
47
+```
48
+
49
+When the first modifier is not set the parameter name will default to the name of the property
50
51
+```html
52
+<div x-data="{ selected: 'option' }" x-query-string="selected">
53
+ <!-- ?selected=value will be appended to the url -->
54
</div>
55
```
56
0 commit comments