I have this old code that listens multiple times on different parts for reactive forms.
e.x.x form$.valueChanges
I want to use the new angular 19 signals and tidy it a bit.
I want to have it inside a function or multiple steps.
Question:
Can i use signals with that example for form$ observable
The form is bound into formbuilder and on the html as async.
The form gets assigned and assigns changes, that i do not like.
Any workaround?
@if (form$ async | as form) {
<form [formGroup]="form">
<mp-input formControlName="first_person"></mp-input>
</form>
}
on that form$ i have too many side effects in methods with example of the following code. They are 4 assignments and some disabling enabling the form values and setting new values.
const itemSelectionValueChanges$ = form.get('itemSelection')!.valueChanges;
itemSelectionValueChanges$.subscribe(value => {
});
I want a way to keep making those changes in the form, but with less side effects and not all with valueChanges