I'm trying to use some simple operators on a EventEmitter (from a FormModel.valueChanges) but I don't know how it's suppose to be done.
The class EventEmitter extends from Subject
export declare class EventEmitter<T> extends Subject<T>
so I tried several things:
this.patientForm.valueChanges.debounceTime(400)
this.patientForm.valueChanges.source.debounceTime(400)
this.patientForm.valueChanges.asObservable().debounceTime(400)
Observable.create(this.patientForm.valueChanges).debounceTime(400)
tried in the constructor and in ngOnInit
the source is always undefined and the operators don't exist in the class.
I have this import import {Observable} from 'rxjs';
could be something with that?
(what I'm trying to do is save the form state in a Redux store, but don't want to do it in every keystroke)