Skip to content

Commit 732633c

Browse files
Grammar tweaks to application.md (#1710)
1 parent 4309049 commit 732633c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Installs a [plugin](/guide/reusability/plugins.html).
233233

234234
Expects the plugin as the first argument, and optional plugin options as the second argument.
235235

236-
The plugin can either be an object with an `install()` method, or a directly a function (which itself will used as the install method). The options (second argument of `app.use()`) will be passed along to the plugin's install method.
236+
The plugin can either be an object with an `install()` method, or just a function that will be used as the `install()` method. The options (second argument of `app.use()`) will be passed along to the plugin's `install()` method.
237237

238238
When `app.use()` is called on the same plugin multiple times, the plugin will be installed only once.
239239

@@ -257,7 +257,7 @@ Installs a [plugin](/guide/reusability/plugins.html).
257257
Applies a global mixin (scoped to the application). A global mixin applies its included options to every component instance in the application.
258258

259259
:::warning Not Recommended
260-
Mixins are supported in Vue 3 mainly for backwards compatibility due to its wide-spread use in ecosystem libraries. Use of mixins, especially global mixins, should be avoided in application code.
260+
Mixins are supported in Vue 3 mainly for backwards compatibility, due to their widespread use in ecosystem libraries. Use of mixins, especially global mixins, should be avoided in application code.
261261

262262
For logic reuse, prefer [Composables](/guide/reusability/composables.html) instead.
263263
:::
@@ -541,7 +541,7 @@ An object for defining merging strategies for custom component options.
541541

542542
Some plugins / libraries add support for custom component options (by injecting global mixins). These options may require special merging logic when the same option needs to be "merged" from multiple sources (e.g. mixins or component inheritance).
543543

544-
A merge strategy function can registered for a custom option by assigning it on the `app.config.optionMergeStrategies` object using the option's name as the key.
544+
A merge strategy function can be registered for a custom option by assigning it on the `app.config.optionMergeStrategies` object using the option's name as the key.
545545

546546
The merge strategy function receives the value of that option defined on the parent and child instances as the first and second arguments, respectively.
547547

0 commit comments

Comments
 (0)