3 ms·
Another example is Angular.js It used Javascript's toString() method to get the names of the arguments and then did dependency injection magic based on it. Doe
by ufo 6y ago
Another example is Angular.js It used Javascript's toString() method to get the names of the arguments and then did dependency injection magic based on it.
Does anyone know if that is still the case for recent versions of Angular?
- bmm6o 6y agoAnd because js is frequently minified, there is a way to specify the names as string literals to keep the injection working.