Skip to content

Commit 6e44bc7

Browse files
committed
small edits
1 parent 50acb7d commit 6e44bc7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/guide/forms.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ When you need to dynamically render a list of options for a `<select>` element,
104104

105105
In your data, `myOptions` should be an keypath/expression that points to an Array to use as its options.
106106

107-
The Array can contain plain strings or objects. The object can be in the format of `{text:'', value:''}`. This allows you to have the option text displayed differently from its underlying value:
107+
The Array can contain plain strings or objects in the format of `{text:'', value:''}`. This object format allows you to have the option text displayed differently from its underlying value:
108108

109109
``` js
110110
[
@@ -157,7 +157,10 @@ Vue.filter('extract', function (value, keyToExtract) {
157157
```
158158

159159
``` html
160-
<select options="users | extract 'name'"></select>
160+
<select
161+
v-model="selectedUser"
162+
options="users | extract 'name'">
163+
</select>
161164
```
162165

163166
The above filter transforms data like `[{ name: 'Bruce' }, { name: 'Chuck' }]` into `['Bruce', 'Chuck']` so it becomes properly formatted.

0 commit comments

Comments
 (0)