Kyle Johnson

Results 3 comments of Kyle Johnson

You need to add `.whenTargetIsDefault()` to your un-named bind when using named bindings: ``` > c.bind("1").toConstantValue("1").whenTargetNamed("numeric") > c.bind("1").toConstantValue("one").whenTargetIsDefault() > c.get("1") 'one' > c.getNamed("1", "numeric") '1' > c.getAllNamed("1", "numeric") [ '1'...

A better approach is to create a child container in the factory. This way, the original container isn't modified: ```typescript export function SceneFactory(context: interfaces.Context) { return (key: string, scene: any)...