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
Смотрите видео Too much junk in your Angular components? Try composition instead of inheritance! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Joshua Morony 19 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 25,944 раз и оно понравилось 813 людям.