Skip to content

Commit 07acfe1

Browse files
committed
spelling and grammar fixes from grammarly
1 parent 35d3bc5 commit 07acfe1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/guide/migration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ mounted: function () {
169169

170170
### `v-for` Argument Order for Arrays
171171

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`.
173173

174174
{% raw %}
175175
<div class="upgrade-path">
@@ -180,7 +180,7 @@ When including an `index`, the argument order for arrays used to be `(index, val
180180

181181
### `v-for` Argument Order for Objects
182182

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.
184184

185185
{% raw %}
186186
<div class="upgrade-path">
@@ -494,7 +494,7 @@ You would use:
494494

495495
### `v-model` with Inline `value` <sup>deprecated</sup>
496496

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.
498498

499499
That means this element:
500500

@@ -581,7 +581,7 @@ If you really need to override another `!important`, you must use the string syn
581581

582582
### `v-el` and `v-ref` <sup>deprecated</sup>
583583

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.
585585

586586
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:
587587

@@ -691,7 +691,7 @@ Vue.config.keyCodes.f1 = 112
691691

692692
### `$dispatch` and `$broadcast` <sup>deprecated</sup>
693693

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).
695695

696696
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.
697697

@@ -857,7 +857,7 @@ computed: {
857857
}
858858
```
859859

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:
861861

862862
``` js
863863
this.users.filter(function (user) {

0 commit comments

Comments
 (0)