diff --git a/modules/swagger-codegen/src/main/resources/typescript-angular2/apis.mustache b/modules/swagger-codegen/src/main/resources/typescript-angular2/apis.mustache index 28e0c985929..579a18f99f0 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-angular2/apis.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-angular2/apis.mustache @@ -2,6 +2,7 @@ {{#apis}} {{#operations}} export * from './{{ apiFilename }}'; +import { {{ classname }} } from './{{ classname }}'; {{/operations}} {{/apis}} export const APIS = [ {{#apis}}{{#operations}}{{ classname }}, {{/operations}}{{/apis}}]; diff --git a/samples/client/petstore/typescript-angular2/default/api/api.ts b/samples/client/petstore/typescript-angular2/default/api/api.ts index 734223c2269..19a794ce50b 100644 --- a/samples/client/petstore/typescript-angular2/default/api/api.ts +++ b/samples/client/petstore/typescript-angular2/default/api/api.ts @@ -1,4 +1,7 @@ export * from './pet.service'; +import { PetService } from './PetService'; export * from './store.service'; +import { StoreService } from './StoreService'; export * from './user.service'; +import { UserService } from './UserService'; export const APIS = [ PetService, StoreService, UserService, ]; diff --git a/samples/client/petstore/typescript-angular2/npm/README.md b/samples/client/petstore/typescript-angular2/npm/README.md index e983ce170f6..528a93ccdcf 100644 --- a/samples/client/petstore/typescript-angular2/npm/README.md +++ b/samples/client/petstore/typescript-angular2/npm/README.md @@ -1,4 +1,4 @@ -## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703151645 +## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703181635 ### Building @@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's. _published:_ ``` -npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703151645 --save +npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703181635 --save ``` _unPublished (not recommended):_ diff --git a/samples/client/petstore/typescript-angular2/npm/api/api.ts b/samples/client/petstore/typescript-angular2/npm/api/api.ts index 734223c2269..19a794ce50b 100644 --- a/samples/client/petstore/typescript-angular2/npm/api/api.ts +++ b/samples/client/petstore/typescript-angular2/npm/api/api.ts @@ -1,4 +1,7 @@ export * from './pet.service'; +import { PetService } from './PetService'; export * from './store.service'; +import { StoreService } from './StoreService'; export * from './user.service'; +import { UserService } from './UserService'; export const APIS = [ PetService, StoreService, UserService, ]; diff --git a/samples/client/petstore/typescript-angular2/npm/package.json b/samples/client/petstore/typescript-angular2/npm/package.json index 307db0564d0..98c9af5dab5 100644 --- a/samples/client/petstore/typescript-angular2/npm/package.json +++ b/samples/client/petstore/typescript-angular2/npm/package.json @@ -1,6 +1,6 @@ { "name": "@swagger/angular2-typescript-petstore", - "version": "0.0.1-SNAPSHOT.201703151645", + "version": "0.0.1-SNAPSHOT.201703181635", "description": "swagger client for @swagger/angular2-typescript-petstore", "author": "Swagger Codegen Contributors", "keywords": [