reactive-forms icon indicating copy to clipboard operation
reactive-forms copied to clipboard

feat: only emit value when control is valid

Open lothern opened this issue 2 years ago • 1 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/ngneat/reactive-forms/blob/master/CONTRIBUTING.md#commit
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

https://github.com/ngneat/reactive-forms/issues/182

Issue Number: 182

What is the new behavior?

New property called validValue$ that only emits when a value is valid.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

lothern avatar Aug 30 '23 19:08 lothern

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.