angular/di.dart — pull request #123 by markovuksanovic (2014-07-03 11:42:31+00:00)
Title: feat(Injector): Allow injecting parameterised types.

This change set implements support for injecting parameterised types.
To inject a parameterised type one must wrap it using a TypeLiteral. For example:

class DependencyWithParameterizedMap {
Map map;

DependencyWithParameterizedMap(this.map);
}

can be bond using the following syntax:

var injector = new ModuleInjector([moduleFactory()
..bind(new TypeLiteral>().type, toValue: {1 : 'first', 2: 'second'})
..bind(DependencyWithParameterizedMap)
..bind(DependencyWithMap)
]);