π§ 1-on-1 Frontend Mentorship (90-min paid session) β https://monsterlessons-academy.com/mentorship?utm_source=youtube&utm_medium=description_link
π Free PDF: Senior Developer Starter Kit (Checklist + 30-Day Plan) β https://monsterlessons-academy.com/newsletter_subscribers/senior_starter_kit?utm_source=youtube&utm_medium=description_link
π Go from Middle to Senior Frontend in 12 Weeks β https://monsterlessons-academy.com/courses/frontend-developer-middle-to-senior-bootcamp?utm_source=youtube&utm_medium=description_link
Learn Angular inject function and how it is better than injection all dependencies in the constructor. It allows us to move parts of our component to plain functions and make them reusable.
π Need a video editor?
Contact Ekaterina: [email protected]
π Social
Twitter: https://twitter.com/monster_lessons
Instagram: https://www.instagram.com/monsterlessonsacademy
Facebook: https://www.facebook.com/monsterlessonsacademy
Linkedin: https://www.linkedin.com/company/monsterlessons-academy
Tiktok: https://www.tiktok.com/@monsterlessonsacademy
π References
Source code - https://github.com/monsterlessonsacademy/monsterlessonsacademy/tree/341-angular-inject-function
π TIMESTAMPS
0:00 Introduction
1:02 Using Angular inject function
2:04 Moving code outside
4:22 Angular component inheritance
6:19 Angular inject function real example
This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.