Why use OnPush in Angular? Not for performance...

Channel:
Subscribers:
83,100
Published on ● Video Link: https://www.youtube.com/watch?v=tWy8zaWvkvk



Category:
Tutorial
Duration: 13:15
19,134 views
759


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







Tags:
ionic
tutorial
tutorials
ionic tutorials
ionic framework
coding
coding tutorials
angular
angular tutorials
cordova
cordova tutorials
capacitor tutorials
mobile
mobile apps
apps
html5
ios
android
native
hybrid
pwa
web apps
progressive web applications
programming
ionic 5
react
stenciljs
stencil
performance
ui
ux
animations
screencast