Skip to content

elementbound/js-di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Dependency Injection in Javascript

This is a simple example of doing dependency injection, based on ( deferred ) promises.

The idea is that each component returns an async function, which will in turn, wait for its own dependencies. The assumption is, that at some point there will be components which don't have additional dependencies. Once those are reached, them and their dependents can be resolved, bubbling up and resolving each component.

About

Simple dependency injection in Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published