Created
February 17, 2018 11:22
-
-
Save mentos1386/974d9a7b42d9bc0df59d4bfa5a62458c 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
@Controller() | |
export class SomeController { | |
constructor( | |
@Inject('someValue') private someValue: string, // Inject | |
) { | |
} | |
@Get( this.someValue ) // Use injected as parameter in decorator | |
public async getSomething() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment