Skip to content

Commit 74d2568

Browse files
authored
Update passing-data.md (vuejs#520)
* Update passing-data.md * Update passing-data.md fixed a typo * Update passing-data.md I am not sure about this one, but i checked markup of another page
1 parent 3e85d6e commit 74d2568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/essentials/passing-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this section, we explore the `data` and `props` mounting options, as well as
66

77
## The Password Component
88

9-
We will demonstrate the above features by building a `<Password>` component. This component verifies a password means certain criteria, such as length and complexity. We will start with the following and add features, as well as tests to make sure the features are working correctly:
9+
We will demonstrate the above features by building a `<Password>` component. This component verifies a password meets certain criteria, such as length and complexity. We will start with the following and add features, as well as tests to make sure the features are working correctly:
1010

1111
```js
1212
const Password = {
@@ -29,7 +29,7 @@ The first requirement we will add is a minimum length.
2929

3030
We want to reuse this component in all our projects, each of which may have different requirements. For this reason, we will make the `minLength` a **prop** which we pass to `<Password>`:
3131

32-
We will show an error is `password` is less than `minLength`. We can do this by creating an `error` computed property, and conditionally rendering it using `v-if`:
32+
We will show an error if `password` is less than `minLength`. We can do this by creating an `error` computed property, and conditionally rendering it using `v-if`:
3333

3434
```js
3535
const Password = {
@@ -74,7 +74,7 @@ test('renders an error if length is too short', () => {
7474
})
7575
```
7676

77-
Writing a test for a `maxLength` rule is left as an exercise for the reader! Another way to write this would be using `setValue` to update the input with a password that is too short. You can learn more in [Forms]./forms).
77+
Writing a test for a `maxLength` rule is left as an exercise for the reader! Another way to write this would be using `setValue` to update the input with a password that is too short. You can learn more in [Forms](./forms).
7878

7979
## Using `setProps`
8080

0 commit comments

Comments
 (0)