Why use OnPush in Angular? Not for performance...
In this video, we discuss the less obvious benefit of OnPush change detection and that is that it helps you architect your applications better. We also look at a specific example of where using OnPush led me to creating significantly better code.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
How change detection works in Angular: https://blog.angular-university.io/how-does-angular-2-change-detection-really-work/
0:00 Introduction
0:26 What is change detection?
3:00 The hidden benefit
4:37 Before the refactor
7:29 After the refactor
11:16 Conclusion
#ionic #angular #rxjs
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony