Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
jcroll committed Apr 30, 2020
1 parent eb02db7 commit 41421cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ export const DEFAULT_ERROR_STATE_MATCHER: DynamicErrorMessagesMatcher =
};
```

You can also set an error matcher on a per control basis by adding under the `additional` field:
You can also set an error matcher on a per control basis by assigning it under the `additional` field:
```ts
new DynamicInputModel({
id: "sampleInput",
Expand All @@ -1080,6 +1080,7 @@ new DynamicInputModel({
errorStateMatcher: myCustomErrorMessagesMatcher
}
}),
```

Please note here that NG Dynamic Forms always assumes both the control being invalid and error messages being defined on the model
as a fixed precondition.
Expand Down

0 comments on commit 41421cc

Please sign in to comment.