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 88TypeDI is a [ dependency injection] ( https://en.wikipedia.org/wiki/Dependency_injection ) tool for JavaScript and TypeScript.
99Using TypeDI you can build well-structured and easily tested applications.
1010
11+ * [ Usage with JavaScript] ( #usage-with-javascript )
12+ * [ Usage with TypeScript] ( #usage-with-typescript )
13+
1114## Usage with JavaScript
1215
1316Install the module:
@@ -115,7 +118,7 @@ class CoffeeMaker {
115118Container .set (" bean.factory" , new BeanFactory (Container ));
116119Container .set (" sugar.factory" , new SugarFactory (Container ));
117120Container .set (" water.factory" , new WaterFactory (Container ));
118- Container .set (" coffee.factory " , new CoffeeMaker (Container ));
121+ Container .set (" coffee.maker " , new CoffeeMaker (Container ));
119122
120123var coffeeMaker = Container .get (" coffee.maker" );
121124coffeeMaker .make ();
You can’t perform that action at this time.
0 commit comments