4 ms·
Agreed. And at least it's more clear that dependencies are being injected.
by ahuth 13y ago
Agreed. And at least it's more clear that dependencies are being injected.
- Cthulhu_ 13y agoThen again, reading about Angular's DI for a few minutes should lock this convention into your mind pretty quickly, I think. An array of strings where the last entry is a function that takes arguments named after the strings of the array it's defined in... sounds rather hacky and confusing to me, not to mention it duplicates strings. Easy to make a typo, easy to change the order of arguments - and no compiler or any kind of sensible IDE or tool to warn you about it.