Рет қаралды 18,764
My modern Angular course: angularstart.com/
In this video, we talk about some of the gotchas and pitfalls to using OnPush Change Detection and Reactive Forms in Angular. This includes dealing with an async validator and changing the status of forms as the result of an asynchronous operation.
Get weekly content and tips exclusive to my newsletter: mobirony.ck.page/4a331b9076
Learn Angular with Ionic: ionicstart.com
Source code: github.com/joshuamorony/angul...
- Previous OnPush Change Detection video: • Why use OnPush in Angu...
- Should we really NEVER subscribe in Angular apps?: • Should we really NEVER...
0:00 Introduction
0:41 Recap of OnPush CD
1:33 Async Validator Example
3:19 Solving with the async pipe
4:34 Other problems with async
6:15 Using ChangeDetectorRef
7:17 The trick
10:03 Conclusion
#rxjs #angular
- More tutorials: eliteionic.com
- Follow me on Twitter: / joshuamorony