We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df8b314 + 3758da8 commit 6c241ebCopy full SHA for 6c241eb
README.md
@@ -645,7 +645,12 @@ export class WaterFactory implements Factory {
645
}
646
647
// app.ts
648
-// now you can get all factories in a single array
+// now you can get all factories in a single array
649
+Container.import([
650
+ BeanFactory,
651
+ SugarFactory,
652
+ WaterFactory,
653
+]);
654
const factories = Container.getMany(FactoryToken); // factories is Factory[]
655
factories.forEach(factory => factory.create());
656
```
0 commit comments