forked from loafle/openapi-generator-original
Merge pull request #2811 from achew22/injection_ts
Update the injector static variable to contain all injected values.
This commit is contained in:
commit
7253375b13
@ -15,7 +15,7 @@ namespace {{package}} {
|
||||
protected basePath = '{{basePath}}';
|
||||
public defaultHeaders : any = {};
|
||||
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||
|
||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||
if (basePath) {
|
||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
||||
protected basePath = 'http://petstore.swagger.io/v2';
|
||||
public defaultHeaders : any = {};
|
||||
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||
|
||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||
if (basePath) {
|
||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
||||
protected basePath = 'http://petstore.swagger.io/v2';
|
||||
public defaultHeaders : any = {};
|
||||
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||
|
||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||
if (basePath) {
|
||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
||||
protected basePath = 'http://petstore.swagger.io/v2';
|
||||
public defaultHeaders : any = {};
|
||||
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||
|
||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||
if (basePath) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user