Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Only emit values if status is valid #182

Open
lothern opened this issue Aug 30, 2023 · 0 comments
Open

Feature Request: Only emit values if status is valid #182

lothern opened this issue Aug 30, 2023 · 0 comments

Comments

@lothern
Copy link

lothern commented Aug 30, 2023

Description

Love this project! I find it superior to the typed forms in Angular 14 and really appreciate your authoring/maintaining of this library. Thank you!

I use RxJS heavily in my projects and I very often observe the value of your typed AbstractControl via the value$ property, and that works great. I have recently encountered a situation where I would like to only receive emitted values if the status of the AbstractControl is valid.

Proposed solution

Add new property validValue$ which emits a value only if the control is valid.

Alternatives considered

Considered implementing outside the library, but that burdens users with the unnecessary details of implementing it themselves.

Do you want to create a pull request?

Yes

@lothern lothern changed the title Only emit values if status is valid Feature Request: Only emit values if status is valid Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant