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

Proposal: Make a stream available that contains all valueChanges and initialValue #164

Closed
Waterstraal opened this issue Apr 9, 2020 · 2 comments

Comments

@Waterstraal
Copy link
Contributor

Waterstraal commented Apr 9, 2020

Hi I started using this library and I found I needed to listen to current values quite often. This includes the initial value. this.formControls.someProp.valueChanges will only emit values when the value changes, not the initial value. It would be really nice if there was a stream available that would also emit the initial value.

Currently I just pipe valueChanges with startWith(this.formGroupControls.someProp.value), but this is tedious. It would be nice if ngx-sub-form could expose a stream that contains just that.

Maybe something like this.formControls.someProp.values$ could be made available in NgxSubFormComponent?

@maxime1992
Copy link
Contributor

Hi @Waterstraal, I believe this is a duplicate of #86

Can you confirm?

@Waterstraal
Copy link
Contributor Author

@maxime1992 sorry for the late reply, but yes that issue seems to be exactly what I need! I'll close this issue.
Any idea when/if #86 will be resolved?

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

2 participants