Created
August 31, 2017 19:10
-
-
Save reyramos/736e1cccb75493b8c22c0a68ce57087b to your computer and use it in GitHub Desktop.
STUPID SHIT
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 RlBlockUiRequestInterceptor implements HttpInterceptor { | |
| rlBlockUiService: RlBlockUiService; | |
| // Use a forwardRef as the RlBlockUiService is defined/exported in the same file | |
| constructor( @Inject(forwardRef(() => RlBlockUiService)) rlBlockUiService: RlBlockUiService){ | |
| this.rlBlockUiService = rlBlockUiService; | |
| } | |
| /** | |
| If you have Injectables within the same file, it may be necessary to use the forwardRef to call that Injectable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment