IoC for Javascript & Node.js

Collection

A Collection is a container of keys / values. Each value is associated with his key corresponding.

Like this:

var container = {
  key1: 'value 1',
  key2: 'value 2',
  // ...
};

Noder.io's collection supports the dependency injection. The API of the Collection class is inspired by Angular and Pimple (among others).

Creating Collection

var items = new noder.Collection();

Or

var items = noder.createCollection();

// true
console.log(items instanceof noder.Collection);