The inject function in Angular is not just a toy

Published: 27 December 2023
on channel: Joshua Morony
16,495
613

My Angular course: https://angularstart.com/

The inject function is a newer way to facilitate dependency injection in Angular, but it provides benefits beyond just being a slightly different syntax for DI. This video discusses one such benefit: being able to use dependency injection within a function.

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Want to build mobile apps with Angular?: https://ionicstart.com

0:00 Introduction
0:29 Utility function with inject
1:12 Why use a function?
1:49 Class based implementation
2:25 Function vs class based approach

#angular

More tutorials: https://modernangular.com
Follow me on Twitter:   / joshuamorony  


Watch video The inject function in Angular is not just a toy online, duration hours minute second in high quality that is uploaded to the channel Joshua Morony 27 December 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 16,495 times and liked it 613 visitors.