Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/v2/guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ Here `attributeName` will be dynamically evaluated as a JavaScript expression, a
Similarly, you can use dynamic arguments to bind a handler to a dynamic event name:

``` html
<a v-on:[eventName]="doSomething"> ... </a>
<a v-on:[event]="doSomething"> ... </a>
```

In this example, when `eventName`'s value is `"focus"`, `v-on:[eventName]` will be equivalent to `v-on:focus`.
In this example, when `event`'s value is `"focus"`, `v-on:[event]` will be equivalent to `v-on:focus`.

#### Dynamic Argument Value Constraints

Expand Down