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

RequireJS is not a service locator,it's a module loader. It doesnt instanciate anything.AngularJS DI IS a service locator, not a dependency injection container.


You're confused. A service locator doesn't have to instantiate anything.

Angular's injector, like Guice's injector is a service locator. Because the normal way to use AngularJS is to simply list your dependencies instead of requesting what you want from an injector instance, it is an IOC DI framework.




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

Search: