Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



And because js is frequently minified, there is a way to specify the names as string literals to keep the injection working.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: