Skip to content

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

@lothern

Description

@lothern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions