{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/4144","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/4144/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/4144/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/4144/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/4144","id":187531574,"number":4144,"title":"[typescript-angular2] feature request NgModule","user":{"login":"hkashlan","id":4923194,"avatar_url":"https://avatars.githubusercontent.com/u/4923194?v=3","gravatar_id":"","url":"https://api.github.com/users/hkashlan","html_url":"https://github.com/hkashlan","followers_url":"https://api.github.com/users/hkashlan/followers","following_url":"https://api.github.com/users/hkashlan/following{/other_user}","gists_url":"https://api.github.com/users/hkashlan/gists{/gist_id}","starred_url":"https://api.github.com/users/hkashlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkashlan/subscriptions","organizations_url":"https://api.github.com/users/hkashlan/orgs","repos_url":"https://api.github.com/users/hkashlan/repos","events_url":"https://api.github.com/users/hkashlan/events{/privacy}","received_events_url":"https://api.github.com/users/hkashlan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-05T23:47:39Z","updated_at":"2016-11-05T23:47:39Z","closed_at":null,"body":"<!--\r\nPlease follow the issue template below for bug reports and feature requests.\r\nAlso please indicate in the issue title which language/library is concerned. Eg:  [JAVA] Bug generating foo with bar \r\n-->\r\n\r\n##### Description\r\n\r\nI think we need to generate NgModule for the generated service\r\n\r\n##### Suggest a Fix\r\n\r\nfor exmaple \r\n\r\nAPI.modules.ts \r\n\r\nimport { NgModule }     from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpModule }   from '@angular/http';\r\n\r\n{{#apiInfo}}\r\n{{#apis}}\r\n{{#operations}}\r\nimport { {{ classname }} } from './api/{{ classname }}';\r\n{{/operations}}\r\n{{/apis}}\r\n{{/apiInfo}}\r\n\r\n@NgModule({\r\n  imports:      [ CommonModule, HttpModule ],\r\n  declarations: [],\r\n  exports:      [],\r\n  providers:    [ {{#apiInfo}}{{#apis}}{{#operations}}{{ classname }}, {{/operations}}{{/apis}}{{/apiInfo}} ]\r\n})\r\nexport class ApiModule {}\r\n"}}
{"actor":{"display_login":"hkashlan"}}