From e55ee9795bfb66b18fb6d3c97d05f1564376b00a Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Wed, 18 Oct 2017 11:17:23 +0200 Subject: [PATCH] [angular-typescript] imports HttpClientModule HttpModule has no effect, since the new `HttpClient` is now used. fixes #6727 --- .../src/main/resources/typescript-angular/api.module.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/typescript-angular/api.module.mustache b/modules/swagger-codegen/src/main/resources/typescript-angular/api.module.mustache index d41c4114222..1d5362988b7 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-angular/api.module.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-angular/api.module.mustache @@ -1,6 +1,6 @@ import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { HttpModule } from '@angular/http'; +import { HttpClientModule } from '@angular/common/http'; import { Configuration } from './configuration'; {{#apiInfo}} @@ -10,7 +10,7 @@ import { {{classname}} } from './{{importPath}}'; {{/apiInfo}} @NgModule({ - imports: [ CommonModule, HttpModule ], + imports: [ CommonModule, HttpClientModule ], declarations: [], exports: [], providers: [ {{#apiInfo}}{{#apis}}{{classname}}{{#hasMore}}, {{/hasMore}}{{/apis}}{{/apiInfo}} ]