Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created September 18, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/214727e8bb0bcc2a765e60f4f73feb02 to your computer and use it in GitHub Desktop.
Save wKoza/214727e8bb0bcc2a765e60f4f73feb02 to your computer and use it in GitHub Desktop.
export class Http1Service extends HttpClient { };
export class Http2Service extends HttpClient { };
@NgModule({
providers: [
{provide: Http1Service, useClass: HttpClient},
{provide: Http2Service, useClass: HttpClient},
]
})
export class AppModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment