3 ms·
> 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 n
by aikah 11y ago
> 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.
- postnihilism 11y agoMany 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 https://github.com/olov/ng-annotate)