Skip to content

Commit e872a38

Browse files
author
Umed Khudoiberdiev
committed
updating docs
1 parent 50ef2ce commit e872a38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
TypeDI is a [dependency injection](https://en.wikipedia.org/wiki/Dependency_injection) tool for JavaScript and TypeScript.
99
Using 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

1316
Install the module:
@@ -115,7 +118,7 @@ class CoffeeMaker {
115118
Container.set("bean.factory", new BeanFactory(Container));
116119
Container.set("sugar.factory", new SugarFactory(Container));
117120
Container.set("water.factory", new WaterFactory(Container));
118-
Container.set("coffee.factory", new CoffeeMaker(Container));
121+
Container.set("coffee.maker", new CoffeeMaker(Container));
119122

120123
var coffeeMaker = Container.get("coffee.maker");
121124
coffeeMaker.make();

0 commit comments

Comments
 (0)