We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 248ddb8 commit 16bfc90Copy full SHA for 16bfc90
1 file changed
README.md
@@ -51,6 +51,22 @@ now you can use validationContext and formFieldContainer it your template
51
52
According to the Validators set in the FormControl the errors appears when the input is invalid, dirty and touched.
53
54
+### Clearing
55
+
56
+The ValidationContextComponent has a imperative clear that resets all fields removing all errors.
57
58
+```
59
+import {ValidationContextComponent} from '@xtream/ngx-validation-errors';
60
61
62
+ @ViewChild(ValidationContextComponent) context: ValidationContextComponent;
63
64
65
+ clearAll() {
66
+ this.context.clear()
67
+ }
68
+}
69
70
### Configuration
71
72
The library can be configured using the `forRoot` static method
0 commit comments