DEV Community

Discussion on: Angular Forms Validation: Part III - Async Validators gotchas

Collapse
 
van9petryk profile image
van9petryk • Edited

An article need to be updated. I just checked example 1 with ChangeDetectionStrategy.Default in Angular 9 and for me all works fine.
Hovewer, ChangeDetectionStrategy.OnPush need markForCheck()

Collapse
 
musatov profile image
Michael Musatov

Hello! My bad. I forget to comment out manual change detection for the Default strategy. This line this.usernameControl.statusChanges.subscribe(() => cd.markForCheck());. For Angular 9 problem is still actual. Thank you for the feedback!