Skip to content

Commit ca1845a

Browse files
Documentation improvements
1 parent a6449c5 commit ca1845a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Angular Reactive Validation
22

3-
I believe Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.
3+
Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.
44

55
## Table of contents
66

@@ -66,15 +66,11 @@ See [Advanced validation declaration](#advanced-validation-declaration) for othe
6666
Add the component that will display the messages to your HTML:
6767

6868
```html
69-
...
69+
<!-- Display validation messages for a single control. -->
70+
<arv-validation-messages for="age"></arv-validation-messages>
7071

7172
<!-- Display validation messages for multiple controls in one location. -->
7273
<arv-validation-messages [for]="['firstName', 'middleName', 'lastName']"></arv-validation-messages>
73-
74-
...
75-
76-
<!-- Display validation messages for a single control. -->
77-
<arv-validation-messages for="age"></arv-validation-messages>
7874
```
7975

8076
Make changes to the styling of the validation messages when needed by using the `invalid-feedback` class. E.g.:
@@ -118,7 +114,7 @@ Validators.minLength(() => this.getMinimumLength(), minLength => `The minimum le
118114

119115
## Changing when validation messages are displayed
120116

121-
By default validation messages are displayed when the associated control is touched, or when the form has been submitted while the `ind-validation-messages` component was instantiated (meaning any hidden elements would not show their validation until a resubmit).
117+
By default validation messages are displayed when the associated control is touched, or when the form has been submitted while the `arv-validation-messages` component was instantiated (meaning any hidden elements would not show their validation until a resubmit).
122118

123119
This implementation can be overridden by changing the module import as follows:
124120

0 commit comments

Comments
 (0)