My modern Angular course: https://angularstart.com/
In this video, we take a look at how to keep your components DRY (Don't Repeat Yourself) by using both an inheritance pattern and a composition pattern with services.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
Source code:
ORIGINAL: https://github.com/joshuamorony/compo...
INHERITANCE: https://github.com/joshuamorony/compo...
COMPOSITION 1: https://github.com/joshuamorony/compo...
COMPOSITION 2: https://github.com/joshuamorony/compo...
More resources:
Dependency Inversion: https://en.wikipedia.org/wiki/Depende...
Introduce Inheritance & Object Composition: / inheritance-object-composition
Code Reuse in Angular with Object Composition & Inheritance: / code-reuse-in-angular-with-object-composit...
0:00 Introduction
1:49 Inheritance
4:08 Composition vs Inheritance
5:13 Composition
9:34 Conclusion
#angular #ionic #architecture
More tutorials: https://eliteionic.com/
Follow me on Twitter: / joshuamorony
Watch video Too much junk in your Angular components? Try composition instead of inheritance! online without registration, duration hours minute second in high quality. This video was added by user Joshua Morony 19 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25,944 once and liked it 813 people.