How deals with injections?

Eugene Krevenets edited this page Jul 26, 2013 · 1 revision

Dependency injection is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time. wikipedia: Dependency injection

In DarlingJS we used AngularJS notation for annotate points for injection dependency.


Annotation for injecting module with name ModuleName and $entity:

['ModuleName', '$entity', function(Module, $entity) {