I have the following code
this.someFormGroup.controls['control1'].valueChanges.subscribe(val => { if (val) { doStuff(); } setTimeout(() => doOtherStuff(), 1000); }); I am wondering if there is another way to achieve this without the use of setTimeout, I was thinking about timer from rxjs, but I am not sure how that could be incorporated here.