File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ Pluralizes the argument based on the filtered value. When there is exactly one a
32
32
** Example:**
33
33
34
34
``` html
35
- {{count}} {{count | pluralize item}}
35
+ {{count}} {{count | pluralize ' item' }}
36
36
```
37
37
38
38
* 1 => '1 item'*
39
39
* 2 => '2 items'*
40
40
41
41
``` html
42
- {{date}}{{date | pluralize st nd rd th }}
42
+ {{date}}{{date | pluralize 'st' 'nd' 'rd' 'th' }}
43
43
```
44
44
45
45
Will result in:
@@ -79,7 +79,7 @@ Wrap the handler so it only gets called when the keyCode matches the argument. Y
79
79
** Example:**
80
80
81
81
``` html
82
- <input v-on =" keyup:doSomething | key enter" >
82
+ <input v-on =" keyup:doSomething | key ' enter' " >
83
83
```
84
84
85
85
` doSomething ` will only be called when the Enter key is pressed.
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ It also has a few presets for commonly used keys:
85
85
86
86
```
87
87
<!-- same as above -->
88
- <input v-on="keyup:submit | key enter">
88
+ <input v-on="keyup:submit | key ' enter' ">
89
89
```
90
90
91
91
Check the API reference for a [ full list of key filter presets] ( /api/filters.html#key ) .
@@ -98,4 +98,4 @@ You might be concerned that this whole event listening approach violates the goo
98
98
2 . Since you don't have to manually attach event listeners in JS, your ViewModel code can be pure logic and DOM-free. This makes it easier to test.
99
99
3 . When a ViewModel is destroyed, all event listeners are automatically removed. You don't need to worry about cleaning it up yourself.
100
100
101
- Next up: [ Handling Forms] ( /guide/forms.html ) .
101
+ Next up: [ Handling Forms] ( /guide/forms.html ) .
You can’t perform that action at this time.
0 commit comments