Skip to content

Instantly share code, notes, and snippets.

@mentos1386
Created February 17, 2018 11:22
Show Gist options
  • Save mentos1386/974d9a7b42d9bc0df59d4bfa5a62458c to your computer and use it in GitHub Desktop.
Save mentos1386/974d9a7b42d9bc0df59d4bfa5a62458c to your computer and use it in GitHub Desktop.
@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