Skip to content

Conversation

@JohannesHoppe
Copy link
Contributor

HttpModule has no effect, since the new HttpClient is now used. fixes #6727

PR checklist

Done via the web-interface. I guarantee nothing. I'm not disappointed if you are not going merge it, but I'm pretty sure it works since the change trivial.

HttpModule has no effect, since the new `HttpClient` is now used. fixes #6727
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be distinguished between http client module and http module. See e.g. https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/typescript-angular/encoder.mustache#L1
moreover, the samples should be re-generated

@macjohnny
Copy link
Contributor

macjohnny commented Oct 19, 2017

@JohannesHoppe could you close your PR in favor of #6757 ?

@JohannesHoppe
Copy link
Contributor Author

@macjohnny sure 👍

@JohannesHoppe JohannesHoppe deleted the patch-1 branch October 19, 2017 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[typescript-angular] generated package/ApiModule imports HttpModule but should import HttpClientModule instead

2 participants