You can follow the below steps to solve this problem.
linenumbers=”false”>this.MyFrm.controls[‘is_applicable’].valueChanges.pipe(distinctUntilChanged()).subscribe(values => { this.mainFunc() });
this.MyFrm.controls[‘is_applicable’].valueChanges .pipe( distinctUntilChanged(), throttleTime(500), takeUntil(this.destroy$) ) .subscribe(values => { this.mainFunc() });
Work with our skilled Angular developers to accelerate your project and boost its performance.
Hire Angular Developers