Created
July 10, 2019 10:59
-
-
Save radzserg/b118d50451cda81f518e98316934df67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @injectable() | |
| export class Client { | |
| constructor(@inject("SuperService") private service: SuperService) {} | |
| } | |
| container.register("SuperService", { | |
| useClass: TestService | |
| }); | |
| const client = container.resolve(Client); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment