Skip to content

Commit a79c320

Browse files
author
David Tang
committed
readme
1 parent eb51eb2 commit a79c320

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ An extra validator for conditional validations with [`ember-changeset-validation
1010
ember install ember-changeset-conditional-validations
1111
```
1212

13-
## Usage
13+
## Basic Usage
1414

1515
Let's say you want to validate a user's settings. Only if the payment method is a credit card should the credit card number validations be applied.
1616

@@ -59,7 +59,9 @@ changeset.validate();
5959
console.log(changeset.get('isValid')); // true
6060
```
6161

62-
You can also have a combination of validations that will always run and conditional validations. For example, say you wanted to validation that a property is a number, but conditionally validate that the number is greater than 5. You could do something like the following:
62+
### Combining Validations with Conditional Validations
63+
64+
You can also have a combination of validations that will always run and conditional validations. For example, say you wanted to validate that a property is a number, but conditionally validate that the number is greater than 5. You could do something like the following:
6365

6466
```js
6567
import { validateNumber } from 'ember-changeset-validations/validators';

0 commit comments

Comments
 (0)