File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
TypeDI is a [ dependency injection] ( https://en.wikipedia.org/wiki/Dependency_injection ) tool for JavaScript and TypeScript.
9
9
Using TypeDI you can build well-structured and easily tested applications.
10
10
11
+ * [ Usage with JavaScript] ( #usage-with-javascript )
12
+ * [ Usage with TypeScript] ( #usage-with-typescript )
13
+
11
14
## Usage with JavaScript
12
15
13
16
Install the module:
@@ -115,7 +118,7 @@ class CoffeeMaker {
115
118
Container .set (" bean.factory" , new BeanFactory (Container ));
116
119
Container .set (" sugar.factory" , new SugarFactory (Container ));
117
120
Container .set (" water.factory" , new WaterFactory (Container ));
118
- Container .set (" coffee.factory " , new CoffeeMaker (Container ));
121
+ Container .set (" coffee.maker " , new CoffeeMaker (Container ));
119
122
120
123
var coffeeMaker = Container .get (" coffee.maker" );
121
124
coffeeMaker .make ();
You can’t perform that action at this time.
0 commit comments