How do you compare to typed-inject and other alternatives ? #18
-
Hi, I'm in the process of selecting a Typescript DI Container and I would like to know how brandi compares to typed-inject, which was my choice before I crossed brandi's road ? The characteristics you put forward seem quite similar :
The noticeable differences to me are :
What missing feature in other DI containers motivated you to develop brandi ? My question is sincere. I do not intend to question the legitimity of your library. I just want to find the best DI container for my need. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi. Thank you for your question. I took the time to get a better understanding of Typed Inject, and here are the differences I saw:
You're right here, but since Brandi has fewer users, I'm freer to add new features and users have more power to influence the development of the library (yours PRs welcome). I hope I answered your question. |
Beta Was this translation helpful? Give feedback.
Hi. Thank you for your question.
I took the time to get a better understanding of Typed Inject, and here are the differences I saw:
const myService = appInjector.injectClass(MyService);
. In this case, your code still depends on theMyService
class constructor, instead of depending on the typed token as Brandi suggests:const myService = container.get(myServiceToken)
;