Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ufo
on Aug 10, 2020
|
parent
|
context
|
favorite
| on:
Where do argc and argv come from?
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
on Aug 10, 2020
[–]
And because js is frequently minified, there is a way to specify the names as string literals to keep the injection working.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Does anyone know if that is still the case for recent versions of Angular?