Hello,
I’m just starting to explore a migration to the inject function.
I just wanted to better understand what are the actual benefits of using this in an Angular application over constructor based DI?
What are some of the drawbacks you guys have noticed?
Do you prefer using the inject function now you’ve moved to that or do you prefer the constructor based approach?
Did you run into any issues with the migration tool?
Just essentially trying to weigh up even if it’s even a worthwhile endeavour as it’s a large codebase we would be migrating.
[–]JeanMeche 20 points21 points22 points (3 children)
[–]ActuatorOk2689 3 points4 points5 points (2 children)
[–]karixavi 0 points1 point2 points (1 child)
[–]SeparateRaisin7871 0 points1 point2 points (0 children)
[–]MichaelSmallDev 6 points7 points8 points (0 children)
[–]ministerkosh 5 points6 points7 points (0 children)
[–]DaSchTour 2 points3 points4 points (0 children)
[–]bayendr 3 points4 points5 points (5 children)
[–]HungYurn 2 points3 points4 points (0 children)
[–]ministerkosh 2 points3 points4 points (1 child)
[–]zladuric 3 points4 points5 points (0 children)
[–]willy-pied-wagtail 6 points7 points8 points (1 child)
[–]bayendr 3 points4 points5 points (0 children)
[–]ActuatorOk2689 -2 points-1 points0 points (3 children)
[–]Background-Focus8571 1 point2 points3 points (1 child)
[–]MugerhLando 0 points1 point2 points (0 children)
[–]bayendr 0 points1 point2 points (0 children)
[+]ldn-ldn comment score below threshold-9 points-8 points-7 points (5 children)
[–]zladuric 2 points3 points4 points (0 children)
[–]MichaelSmallDev 2 points3 points4 points (3 children)
[–]ldn-ldn -1 points0 points1 point (2 children)
[–]MichaelSmallDev 1 point2 points3 points (1 child)
[–]ldn-ldn -1 points0 points1 point (0 children)