Skip to content

Commit 111796e

Browse files
committed
Minor tweaks to the guides in Essentials
1 parent 89b8d9f commit 111796e

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

src/guide/essentials/application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ app.config.errorHandler = (err) => {
9393
}
9494
```
9595

96-
The application instance also provides a few methods for registering app-scoped assets. for example, registering a component:
96+
The application instance also provides a few methods for registering app-scoped assets. For example, registering a component:
9797

9898
```js
9999
app.component('TodoDeleteButton', TodoDeleteButton)

src/guide/essentials/component-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,6 @@ The custom component `<blog-post-row>` will be hoisted out as invalid content, c
625625
When used on native HTML elements, the value of `is` must be prefixed with `vue:` in order to be interpreted as a Vue component. This is required to avoid confusion with native [customized built-in elements](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example).
626626
:::
627627

628-
That's all you need to know about DOM template parsing caveats for now - and actually, the end of Vue's _Essentials_. Congratulations! There's still more to learn, but first, we recommend taking a break to play with Vue yourself - build something fun, or check out some of the [Examples](/examples/) if you haven't.
628+
That's all you need to know about DOM template parsing caveats for now - and actually, the end of Vue's _Essentials_. Congratulations! There's still more to learn, but first, we recommend taking a break to play with Vue yourself - build something fun, or check out some of the [Examples](/examples/) if you haven't already.
629629

630630
Once you feel comfortable with the knowledge you've just digested, move on with the guide to learn more about components in depth.

src/guide/essentials/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const multiSelected = ref([])
1515

1616
# Form Input Bindings
1717

18-
When dealing with forms on the frontend, we often need to sync the state of form input elements with corresponding state in JavaScript. It can be cumbersom to manually wire up value bindings and change event listeners:
18+
When dealing with forms on the frontend, we often need to sync the state of form input elements with corresponding state in JavaScript. It can be cumbersome to manually wire up value bindings and change event listeners:
1919

2020
```vue-html
2121
<input

src/guide/essentials/lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ setTimeout(() => {
5151
}, 100)
5252
```
5353

54-
Do note this doesn't mean that the call must be placed lexically inside `setup()` or `<script setup>` - `onMounted()` can be called in an external function as along as the call stack is synchronous and originates from within `setup()`.
54+
Do note this doesn't mean that the call must be placed lexically inside `setup()` or `<script setup>` - `onMounted()` can be called in an external function as long as the call stack is synchronous and originates from within `setup()`.
5555

5656
</div>
5757

src/guide/essentials/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const items = [
9090

9191
items.forEach((item, index) => {
9292
// has access to outer scope `parentMessage`
93-
// but `item` and `index` are only avaialble in here
93+
// but `item` and `index` are only available in here
9494
console.log(parentMessage, item.message, index)
9595
})
9696
```

src/guide/essentials/reactivity-fundamentals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ export default {
535535
}
536536
```
537537

538-
However, this approach is problematic for components that are reused because a debounce function is **stateful**: it maintains some internal state on the elapsed time. If multiple component instances share the same debounced function, they will interfere with one another.
538+
However, this approach is problematic for components that are reused because a debounced function is **stateful**: it maintains some internal state on the elapsed time. If multiple component instances share the same debounced function, they will interfere with one another.
539539

540-
To keep the each component instance's debounce function independent from each other, we can create the debounced version of a method in the `created` lifecycle hook:
540+
To keep each component instance's debounced function independent of the others, we can create the debounced version in the `created` lifecycle hook:
541541

542542
```js
543543
export default {
@@ -564,7 +564,7 @@ export default {
564564

565565
## Reactivity Transform <sup class="vt-badge experimental" /> \*\*
566566

567-
Having to use `.value` with refs is a drawback imposed by the language constraints of JavaScript. However, with compile-time transforms we can improve the ergonomics by automatically appending `.value` in appropriate locations. Vue provides a compile-time transform that allows us to write the ealier "counter" example like this:
567+
Having to use `.value` with refs is a drawback imposed by the language constraints of JavaScript. However, with compile-time transforms we can improve the ergonomics by automatically appending `.value` in appropriate locations. Vue provides a compile-time transform that allows us to write the earlier "counter" example like this:
568568

569569
```vue
570570
<script setup>

src/guide/essentials/template-syntax.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,15 @@ Dynamic argument expressions have some syntax constraints because certain charac
241241
<a :['foo' + bar]="value"> ... </a>
242242
```
243243

244-
If you need to pass a complex dynamic argument, it's probably better to use to a [computed property](./computed.html), which we will cover shortly.
244+
If you need to pass a complex dynamic argument, it's probably better to use a [computed property](./computed.html), which we will cover shortly.
245245

246246
When using in-DOM templates (templates directly written in an HTML file), you should also avoid naming keys with uppercase characters, as browsers will coerce attribute names into lowercase:
247247

248248
```vue-html
249249
<a :[someAttr]="value"> ... </a>
250250
```
251251

252-
The above will be converted to `:[someattr]` in in-DOM templates.
253-
If your component has a "someAttr" property instead of "someattr",
254-
your code won't work.
252+
The above will be converted to `:[someattr]` in in-DOM templates. If your component has a `someAttr` property instead of `someattr`, your code won't work.
255253

256254
### Modifiers
257255

0 commit comments

Comments
 (0)