Dependency Injection #16
Hookyns
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dependency Injection, the main reason I've created this TypeScript reflection project.
Well here it is, Dependency Injection using
tst-reflect's runtime Types and generic types as extension for the NetLeaf (my .NET like hosting framework for JavaScript):https://github.com/Hookyns/NetLeaf/tree/main/libraries/extensions-dependency-injection-typed
Usage
First lets have some services (interfaces and classes):
Usage:
Output:
Beta Was this translation helpful? Give feedback.
All reactions