Skip to content

Commit 979bb81

Browse files
committed
document v-stream options
1 parent 580cde3 commit 979bb81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ This is useful when you need to pass along temporary variables like `v-for` iter
137137
const plusData$ = this.plus$.pluck('data')
138138
```
139139

140+
Starting in 3.1 you can also pass along extra options (passed along to native `addEventListener` as the 3rd argument):
141+
142+
``` html
143+
<button v-stream:click="{
144+
subject: plus$,
145+
data: someData,
146+
options: { once: true, passive: true, capture: true }
147+
}">+</button>
148+
```
149+
140150
See [example](https://github.com/vuejs/vue-rx/blob/master/example/counter.html) for actual usage.
141151

142152
### Other API Methods

0 commit comments

Comments
 (0)