I have reactive form in angular application. I subscribe to it with valueChanges and before get the result of subscribe method, want to filter this object with rxjs filter or some similar method to get only not empty feald of form. How can I solve this?
this.form.valueChanges.pipe(
debounceTime(500),
filter(formObj => {
// code that remove empty object values
})
).subscribe(val => {
// val example `{fullName: "name", dateOfBirthday: "", phoneNumber: "", fullAddress: ""}`
});