lu.js
Lightweight dependency injection lib written in JavaScript.
Usage
var container = // services are singletons // this is how dependencies get passed in // you can also define values as dependencies value'myVal' ' is a random value' // factories get always called when they // get injected. ; // get a registered dependencyvar myService = container; // run some anonymous function and pass// dependencies in;
Installation
Node.JS
npm install lujs
Browser
bower install lu
License
Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.