[question] How to design the IoC container in multi type services? #1580
Unanswered
liaodalin19903
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project as follows:
I am currently designing to use an IoC container to decouple the definitions under
src/main/
forsrc/other/usage
.I can create an IoC container for each directory under the
src/main/
directory. That is to say, in my project, there are different containers for different service types. Then when used insrc/other/usage
, multiple containers need to be imported.Or should only one container be created, for example:
src/ioc.ts
then register all services to this one IoC container?
Beta Was this translation helpful? Give feedback.
All reactions