24 ms·
I still can't decide if angular dependency injection is more amazing or revolting. It's magic, it's non-intuitive, it breaks the standard paradigm that functio
by klochner 13y ago
I still can't decide if angular dependency injection is more amazing or revolting.
It's magic, it's non-intuitive, it breaks the standard paradigm that function arguments have no external significance, and it doesn't add much real value by just saving one extra line per function - inject(fn, ...)
On the other hand, it's elegant if you ignore all the above criticisms.
- AdrianRossouw 13y agojust the inferred dependency injection. and it's warped. as i stated in my article. i don't mind the DI myself too much, but then, I also prefer commonJS =P