You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/migration.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ mounted: function () {
169
169
170
170
### `v-for` Argument Order for Arrays
171
171
172
-
When including an `index`, the argument order for arrays used to be `(index, value)`. It is now `(value, index)` to be more consisent with JavaScript's native array methods such as `forEach` and `map`.
172
+
When including an `index`, the argument order for arrays used to be `(index, value)`. It is now `(value, index)` to be more consistent with JavaScript's native array methods such as `forEach` and `map`.
173
173
174
174
{% raw %}
175
175
<divclass="upgrade-path">
@@ -180,7 +180,7 @@ When including an `index`, the argument order for arrays used to be `(index, val
180
180
181
181
### `v-for` Argument Order for Objects
182
182
183
-
When including a `key`, the argument order for objects used to be `(key, value)`. It is now `(value, key)` to be more consisent with common object iterators such as lodash's.
183
+
When including a `key`, the argument order for objects used to be `(key, value)`. It is now `(value, key)` to be more consistent with common object iterators such as lodash's.
184
184
185
185
{% raw %}
186
186
<divclass="upgrade-path">
@@ -494,7 +494,7 @@ You would use:
494
494
495
495
### `v-model` with Inline `value` <sup>deprecated</sup>
496
496
497
-
`v-model` no longer cares about initial value of an inline `value` attribute. For predictability, it will instead always treat the Vue instance data as the source of truth.
497
+
`v-model` no longer cares about the initial value of an inline `value` attribute. For predictability, it will instead always treat the Vue instance data as the source of truth.
498
498
499
499
That means this element:
500
500
@@ -581,7 +581,7 @@ If you really need to override another `!important`, you must use the string syn
581
581
582
582
### `v-el` and `v-ref` <sup>deprecated</sup>
583
583
584
-
For simplicity, `v-el` and `v-ref` have been merged into the `ref` attribute, accessable on a component instance via `$refs`. That means `v-el:my-element` would become `ref="myElement"` and `v-ref:my-component` would become `ref="myComponent"`. When used on a normal element, the `ref` will be the DOM element, and when used on a component, the `ref` will be the component instance.
584
+
For simplicity, `v-el` and `v-ref` have been merged into the `ref` attribute, accessible on a component instance via `$refs`. That means `v-el:my-element` would become `ref="myElement"` and `v-ref:my-component` would become `ref="myComponent"`. When used on a normal element, the `ref` will be the DOM element, and when used on a component, the `ref` will be the component instance.
585
585
586
586
Since `v-ref` is no longer a directive, but a special attribute, it can also be dynamically defined. This is especially useful in combination with `v-for`. For example:
587
587
@@ -691,7 +691,7 @@ Vue.config.keyCodes.f1 = 112
691
691
692
692
### `$dispatch` and `$broadcast` <sup>deprecated</sup>
693
693
694
-
`$dispatch` and `$broadcast` are being deprecated in favor of more explicity cross-component communication and more maintainable state management solutions, such as [Vuex](https://github.com/vuejs/vuex).
694
+
`$dispatch` and `$broadcast` are being deprecated in favor of more explicitly cross-component communication and more maintainable state management solutions, such as [Vuex](https://github.com/vuejs/vuex).
695
695
696
696
The problem is event flows that depend on a component's tree structure can be hard to reason about and very brittle when the tree becomes large. It simply doesn't scale well and we don't want to set you up for pain later. `$dispatch` and `$broadcast` also do not solve communication between sibling components.
697
697
@@ -857,7 +857,7 @@ computed: {
857
857
}
858
858
```
859
859
860
-
With JavaScript's native `.filter`, it's also manage much more complex filtering operations, because you have access to the full power of JavaScript within computed properties. For example, if you wanted to find all active users and case-insensitively match against both their name and email:
860
+
JavaScript's native `.filter` can also manage much more complex filtering operations, because you have access to the full power of JavaScript within computed properties. For example, if you wanted to find all active users and case-insensitively match against both their name and email:
0 commit comments