Skip to content

Instantly share code, notes, and snippets.

@reyramos
Created August 31, 2017 19:10
Show Gist options
  • Select an option

  • Save reyramos/736e1cccb75493b8c22c0a68ce57087b to your computer and use it in GitHub Desktop.

Select an option

Save reyramos/736e1cccb75493b8c22c0a68ce57087b to your computer and use it in GitHub Desktop.
STUPID SHIT
@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