10000 v-bind merge strategy modifier by CyberAP · Pull Request #215 · vuejs/rfcs · GitHub
[go: up one dir, main page]

Skip to content

v-bind merge strategy modifier #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Typos
  • Loading branch information
CyberAP authored Sep 28, 2020
commit 806ec4e452caf3497c36074199db22c7b36d14c1
6 changes: 3 additions & 3 deletions active-rfcs/0000-v-bind-merge-strategy-modifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ Add `.replace` modifier for `v-bind` to change default merge strategy.
# Basic example

```html
<div foo="bar" v-bind="{ foo: 'baz' }"></div>
<div foo="bar" v-bind="{ foo: 'qux' }"></div>
<!--would render to-->
<div foo="bar"></div>
```

```html
<div foo="bar" v-bind.replace="{ foo: 'baz' }"></div>
<div foo="bar" v-bind.replace="{ foo: 'qux' }"></div>
<!--would render to-->
<div foo="baz"></div>
<div foo="qux"></div>
```

# Motivation
Expand Down
0