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

> Any website worth its salt will minify the assets

In Angular you'd assign a property called $inject to make "DI" still work even with minification, so it's not really an issue.Or you can explicitly pass a array with dependency names when a service is registered.

So there is no issue here.

Now I don't know how Famous works and i'm not interested in using that 2M dollars vaporware. I'm just saying.



Many build tools will allow you to simply annotate functions that are meant to have their dependencies injected so you can avoid explicitly typing out the verbose array syntax. (e.g. https://github.com/olov/ng-annotate)




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

Search: